Hi there,
I have a Form consisting of Parent and Embedded browse into which I enter Items
On each Item added I use 'parentform.resynch()' and all the required fields update correctly.
If I amend an item However, 'parentform.resynch() plays havoc with my embedded browse layout going back to first item of embedded browse, rather than staying on the line being amended, which is what I and my users want.
How do I refresh a single field on the form such as Td_head.Netamt. in my attachments ? As you can see I have tried a few unsuccessfully.
I have a Form consisting of Parent and Embedded browse into which I enter Items
On each Item added I use 'parentform.resynch()' and all the required fields update correctly.
If I amend an item However, 'parentform.resynch() plays havoc with my embedded browse layout going back to first item of embedded browse, rather than staying on the line being amended, which is what I and my users want.
How do I refresh a single field on the form such as Td_head.Netamt. in my attachments ? As you can see I have tried a few unsuccessfully.
Code:
xbasic_wait_for_idle() 'doesn't like 'head_netamt = tablesum(s_item,xact_filter,"netamt")' '..below - may this will help (Stan Matthews implied timing issue) s_xact_id = Td_head.xf_xctidf 'needs to be shared or global ?? xact_filter = "Xm_xctidf = Var->s_xact_id" 'Works xbasic_wait_for_idle() 'doesn't like 'head_netamt = tablesum(s_item,xact_filter,"netamt")'?? head_netamt = tablesum(s_item,xact_filter,"netamt") xbasic_wait_for_idle() 'doesn't like 'head_netamt = tablesum(s_item,xact_filter,"netamt")'?? head_vatamt = tablesum(s_item,xact_filter,"Vatamt") s_net_amnt = head_netamt 'req for button 'btn_Commit_Xsact' s_vat_dsc_amnt = head_vatamt 'req for button 'btn_Commit_Xsact' Td_head.change_begin() Td_head.Netamt = head_netamt Td_head.Acumitmvat = head_vatamt Td_head.Dueamt = head_netamt + head_vatamt Td_head.change_end() 'parentform.resynch() 'this NIEKS the embedded browse badly - beware present elsewhere 'sys_send_keys("{F5}") 'also plays havoc with the embedded browse 'head_netamt.resynch() 'resynch(head_netamt) 'Td_head.Netamt.refresh() 'no can do goto finish '----->>>>> 'end
Comment