Hello @dipendu_g ,
As I understood, you want, when someone enter the "fname" value in the input form then Unique "fId" will generate automatically when someone save the input form.
For this, I did the following test.
Schema: There you need to add following two fields and need to define a method:
<srcSchema _cs="Test01 (cus)" createdBy-id="0"
entitySchema="xtk:srcSchema" img="xtk:schema.png" label="Test01"
mappingType="sql" md5="5CA41EE99322B61D35A2210A9D7956BB" modifiedBy-id="0"
name="test01" namespace="cus" xtkschema="xtk:srcSchema">
<element autopk="true" label="Test01" name="test01">
<attribute label="FName" name="fname" type="string"/>
<attribute label="FId" name="fId" type="string"/>
</element>
<methods>
<method library="cus:test01.js" name="genId" static="true">
<parameters>
<param desc="fname" inout="in" name="fname" type="string"/>
<param desc="fId" inout="out" name="fId" type="string"/>
</parameters>
</method>
</methods>
</srcSchema>
JavaScript Library: You need to create a .js file under JavaScript code folder in admin.
function cus_test01_genId(fname){
var counter = getOption("counterForFid") // this is to mange the Id. You need to create it in option with int type.
setOption("counterForFid",++counter);
return fname+counter; //it return unique Id
}

Option: To mange a unique fId, you need counter. If someone can enter same fName the it will keep fid unique.

Input form: There when someone enter the value for "fname" field, it will pass to the function and it will return the unique fId based on fName. Note: There fname is passed to function via soap call and output of function is inserter to fId via xpathOut parameter.FId filed is read only, because this is id.
<form _cs="test01 (cus)" entitySchema="xtk:form"
img="xtk:form.png" label="test01"
modifiedBy-id="3524" name="test01" namespace="cus" xtkschema="xtk:form">
<input readOnly="true" xpath="@fId"/>
<input xpath="@fname"/>
<leave>
<soapCall name="genId" service="cus:test01">
<param exprIn="@fname" type="string"/>
<param type="string" xpathOut="@fId"/>
</soapCall>
</leave>
</form>
Navigation hierarch: I believe you already created it. Just sharing if needed.
<navtree _cs="test01 (cus)"
entitySchema="xtk:navtree" img="nl:folders.png" label="test01"
md5="AE43085ADF6D10668FDC881DCD8DDB64" modifiedBy-id="3524" name="test01"
namespace="cus" xtkschema="xtk:navtree">
<model name="root">
<model label="Administration" name="admin">
<model label="Test01" name="cusTest01">
<nodeModel img="nms:folder.png" label="Test01" name="nmsFolder">
<view name="listdet" schema="cus:test01" type="listdet">
<columns>
<node xpath="@fname"/>
<node xpath="@fId"/>
</columns>
</view>
</nodeModel>
</model>
</model>
</model>
</navtree>
Final test: Enter Fname and save the value. Fid will be generated.

I hope it will help you.
Thanks,
Parvesh