Best way to create a 'group' of fields (for easy reset / move by name)

Hello,

I have tried, without much success, to ‘group’ a set of fields in an AJAX page for easy filling and reset in the corresponding program ie

njx:natname G1.#EXAMPLE

The conversion to the adapter is ignoring the G1. and simply putting in

1 #EXAMPLE (A) DYNAMIC

So, when I manually edit the copied adapter parameters in my main program, I’m getting a parameter mismatch in the program when trying to group (mainly because the adapter definition) ie
1 G1
2 #EXAMPLE (A) DYNAMIC

What would be the best way of creating a ‘group’ of fields for individual display?

I’m leaning towards a ROWTABLEAREA2 without a header or is a FIELDLIST better?

Basically, I sort of want my fields to display individually in different places all over the screen (can’t really achieve this with a grid).

Thank you

Hi Trentan,

did you find a solution for this in the meanwhile?

If not, the following might meet your requirements. As an example for fields you can specify “name.firstname”, “name.lastname” as valueprop.


<field valueprop="name.firstname" width="200">
</field>
<field valueprop="name.lastname" width="200">
</field>

This will generate the following data fields in the adapter:


1 NAME 
2 FIRSTNAME (A) DYNAMIC
2 LASTNAME (A) DYNAMIC

In your Natural Program you can then for instance clear both fields this way:


RESET NAME

Is this what you would like to do?

Best Regards,
Christine

Thanks Christine,

Yes this helps somewhat, but the main reason was I was trying to employ this method in the Natural name
njx:natname box. (Keeping the naming separate).

A move by name into the adapter generated fields should work now and solve my problem.

Cheers :wink: