I'm trying to put together an action button which sets some field values on my Grid, but it seems like any reference to the Grid component using a placeholder results in this object undefined error, which seems to be suggesting that the Grid doesn't exist
When I switch to Preview mode I get the following errors -
error1.jpg
error2.jpg
I'm working off've an updatable Grid component with the Form layout which is used exclusively for submitting new records.
The in-line Javascript on my ActionButton looks like this -
The same error will display even if I just use the first line "rowNum = {Grid.RowNumber};"
Am I missing something, perhaps specific to this type of Grid? I have other grids that use different layouts which have absolutely no problem referencing the Grid component.
When I switch to Preview mode I get the following errors -
error1.jpg
error2.jpg
I'm working off've an updatable Grid component with the Form layout which is used exclusively for submitting new records.
The in-line Javascript on my ActionButton looks like this -
Code:
rowNum = {Grid.RowNumber}; {Grid.object}.setValue('G','TARGET',rowNum,'0'); {Grid.object}.setValue('G','PROSPECTS_NEWAPS',rowNum,'0'); {Grid.object}.setValue('G','CALLBACKS_NEWAPS',rowNum,'0'); {Grid.object}.setValue('G','REFERRALS_NEWAPS',rowNum,'0'); {Grid.object}.setValue('G','APS_THISWEEK',rowNum,'0'); {Grid.object}.setValue('G','APS_NEXTWEEK',rowNum,'0'); {Grid.object}.setValue('G','TOTAL_APS_SEEN',rowNum,'0'); {Grid.object}.setValue('G','TOTAL_APS_SEEN_LEADS',rowNum,'0'); {Grid.object}.setValue('G','TOTAL_BSNS_SIGNED',rowNum,'0'); {Grid.object}.setValue('G','BUSINESS_NAME1',rowNum,''); {Grid.object}.setValue('G','NO_OF_OUTLETS1',rowNum,'0'); {Grid.object}.setValue('G','COMMISSION1',rowNum,'0'); {Grid.object}.setValue('G','BUSINESS_NAME2',rowNum,''); {Grid.object}.setValue('G','NO_OF_OUTLETS2',rowNum,'0'); {Grid.object}.setValue('G','COMMISSION2',rowNum,'0'); {Grid.object}.setValue('G','BUSINESS_NAME3',rowNum,''); {Grid.object}.setValue('G','NO_OF_OUTLETS3',rowNum,'0'); {Grid.object}.setValue('G','COMMISSION3',rowNum,'0'); {Grid.ComponentName}.setValue('G','SICKNESS',{Grid.RowNumber},true);
Am I missing something, perhaps specific to this type of Grid? I have other grids that use different layouts which have absolutely no problem referencing the Grid component.
Comment