Setting dynamic field titles in natural xml

Product/components used and version/fix level: N1 9.3.3 fix 3

*Detailed explanation of the problem: We build form fields from queries using the tag in xml. We need to dynamically set the form field title value. I cannot find anything in the docs on how to do that. I tried using a Natural variable, but it was just entered as text.

  •                       [color=#000080]<repeat>[/color]
    
                              [color=#000080]<tr>[/color]
    
                                  [color=#000080]<hdist>[/color]
    
                                  [color=#000080]</hdist>[/color]
    
                                  [color=#000080]<field[/color] [color=#000080]bgcolorprop=[/color][color=#008000]"bgcol_xselection-cv"[/color] [color=#000080]datatype=[/color][color=#008000]"string 1"[/color] [color=#000080]displayprop=[/color][color=#008000]"disprop_xselection-cv"[/color] [color=#000080]fieldstyle=[/color][color=#008000]"font-family:Courier New;font-size:12;color:#000000"[/color] [color=#000080]invisiblemode=[/color][color=#008000]"cleared"[/color] [color=#000080]length=[/color][color=#008000]"1"[/color] [color=#000080]njx:natcomment=[/color][color=#008000]"statusprop=status_xselection-cv"[/color] [color=#000080]njx:natname=[/color][color=#008000]"XMAP-FIELDS.XSELECTION"[/color] [color=#000080]statusprop=[/color][color=#008000]"status_xselection-cv"[/color] [color=#000080]textalign=[/color][color=#008000]"center"[/color] [color=#000080]title=[/color][color=#008000]"\[dynamic title here\]"[/color] [color=#000080]uppercase=[/color][color=#008000]"true"[/color] [color=#000080]valueprop=[/color][color=#008000]"xselection"[/color] [color=#000080]width=[/color][color=#008000]"45"[/color][color=#000080]>[/color]
    
                                  [color=#000080]</field>[/color]
    
                              [color=#000080]</tr>[/color]
    
                          [color=#000080]</repeat>[/color]
    

Question related to a free trial, or to a production (customer) instance? production

Hi Ian,

Is my understanding correct that your question is about Natural for Ajax?

The FIELD control you are using supports a title and a titleprop property. Your layout snippet above shows the usage of a FIELD control in a grid. When using a FIELD in a grid, you usually use the titleprop property. This will result in a Natural field which you dynamically fill with the correct value per item in your Natural program. For titleprop=“fieldtitle” your grid data structure will look like this:

1 THEGRID (1:*)

2 FIELDTITLE (A) DYNAMIC

…

In the Browser this will be rendered a s tooltip for the corresponding column.

Does this meet your requirements?

Best Regards,

Christine

Thank you. That was what I needed.