I have an activity genie for a client. What it does is allows the feild rep to report a sales call, and all items discussed with the customer. When you click on the Add MA/DSR-DM button it fires the MA-DSRGenie script.
Upon completeing that script it dumps you back at the main Genie xdialog. But the MA/DSR record-combo or DM record-list never refresh to show the new entry for the company. you have to change companies and then come back before it will show up.
Is there away to have them refresh to show the new entries for the current company once the other window closes?
I attemped to set a_dld_button to the event in the add buttons event like so
if a_dlg_button = "addDSR"
holder=ActDistfinder
script_play_local("MA-DSRgenie")
actdistfinder=alltrim(holder)
a_dlg_button ="ActDistfinder_changed"
end if
but i have found that if i set actdistfinder from a variable (as above) it wont work but if actually set actdistfinder = "GWST" it will work (as below).
if a_dlg_button = "addDSR"
script_play_local("MA-DSRgenie")
actdistfinder="GWST"
a_dlg_button ="ActDistfinder_changed"
end if
This will cause the a_dlg_button ="ActDistfinder_changed"
to fire.
also attached are the 3 talbes and 2 scripts from my project that are involved. To test it in the sample run the activity gecie script.
Thanks in advance for any ideas, hints or slaps on the head.
Chuck Browne
Upon completeing that script it dumps you back at the main Genie xdialog. But the MA/DSR record-combo or DM record-list never refresh to show the new entry for the company. you have to change companies and then come back before it will show up.
Is there away to have them refresh to show the new entries for the current company once the other window closes?
I attemped to set a_dld_button to the event in the add buttons event like so
if a_dlg_button = "addDSR"
holder=ActDistfinder
script_play_local("MA-DSRgenie")
actdistfinder=alltrim(holder)
a_dlg_button ="ActDistfinder_changed"
end if
but i have found that if i set actdistfinder from a variable (as above) it wont work but if actually set actdistfinder = "GWST" it will work (as below).
if a_dlg_button = "addDSR"
script_play_local("MA-DSRgenie")
actdistfinder="GWST"
a_dlg_button ="ActDistfinder_changed"
end if
This will cause the a_dlg_button ="ActDistfinder_changed"
to fire.
also attached are the 3 talbes and 2 scripts from my project that are involved. To test it in the sample run the activity gecie script.
Thanks in advance for any ideas, hints or slaps on the head.
Chuck Browne
Comment