Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

smartform import parameter

Former Member
0 Likes
672

Hello all, I've created a new smartform with a new import parameter called TOTAL_DATA, which contains several fields. TOTAL_DATA is defined in the smartform global settings>form interface tab as an import parameter. I thought this would make this parameter data available within all smartform nodes. TOTAL_DATA is not a table but a structure.

I've inserted some TOTAL_DATA field references, e.g. &TOTAL_DATA-1_6&, into text nodes within a template node. The smartform compiles correctly but when I test the smartform I get error 'Reference field TOTAL_DATA-1_1 unknown in form'. I inserted the field using the smartform field list window click and drag.

Is there something I need to do to make the import paramter data available in the text node.

Any help much appreciated.

Thanks, Inde

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
482

Is the reference field TOTAL_DATA-1_1 a currency / quantity field ? If yes, does it have a reference to CUKY / UNIT field ?

If your import structure TOTAL_DATA is not a DDIC structure, then you need to create a Z structure of type TOTAL_DATA and for all currency/unit make sure there is a refernce to CUKY/UNIT.

Regards,

Subramanian V.

2 REPLIES 2
Read only

Former Member
0 Likes
483

Is the reference field TOTAL_DATA-1_1 a currency / quantity field ? If yes, does it have a reference to CUKY / UNIT field ?

If your import structure TOTAL_DATA is not a DDIC structure, then you need to create a Z structure of type TOTAL_DATA and for all currency/unit make sure there is a refernce to CUKY/UNIT.

Regards,

Subramanian V.

Read only

0 Likes
482

Thanks Subramanian, that's solved my problem. My import parameter was referencing a DD structure with currency fields. The DD reference currency field was not passed to the smartform...hence the error.

I've defined the DD reference currency field as a global parameter for the smartform which fixed my problem. I could pass this in as another import parameter which would also fix my problem.

Many thanks for your help, Inde