Good morning,
I've got a couple of problems i'm hoping someone can set me on the right track.
I have a set with the parent "calendar" and the child Client information the linking field is Scheduled date.
i have a calendar with buttons that i have set a dialog box to appear on push that asks 3 pieces information about the job trying to schedule.
Promblem 1) When the user presses cancel on the dialog box I want the script to delete the record already created earlier in the script.
'Create an XDialog dialog box to prompt for parameters.
DIM vtruck as N
DIM vtime as C
DIM Vid as N
DIM varC_result as C
DELETE a_vtruck
DIM a_vtruck[3] as c
dim temp_list as c
temp_list =
{endregion};
%dlg%)
IF a5_eval_expression("=(Var->varC_result = \"&CANCEL\" ) ") THEN
topparent:Browse1.delete_record()
END IF
Earlier in the script a dialog box opens and prompts the user if they want to schedule a new job If yes then the script enters a new job with the corresoponding date of the button. Anyway everything works but the bottom where i want it to delete record If cancel is pressed.
What do I do?
2)When you enter the id number i want it to lookup the customer and insert it in the customer column.
I put a lookup in the field rules for ID but it does not want to work properly. If i manly insert the id number it works fine.
What can I do to fix this?
Thanks as always Brian
I've got a couple of problems i'm hoping someone can set me on the right track.
I have a set with the parent "calendar" and the child Client information the linking field is Scheduled date.
i have a calendar with buttons that i have set a dialog box to appear on push that asks 3 pieces information about the job trying to schedule.
Promblem 1) When the user presses cancel on the dialog box I want the script to delete the record already created earlier in the script.
'Create an XDialog dialog box to prompt for parameters.
DIM vtruck as N
DIM vtime as C
DIM Vid as N
DIM varC_result as C
DELETE a_vtruck
DIM a_vtruck[3] as c
dim temp_list as c
temp_list =
{endregion};
%dlg%)
IF a5_eval_expression("=(Var->varC_result = \"&CANCEL\" ) ") THEN
topparent:Browse1.delete_record()
END IF
Earlier in the script a dialog box opens and prompts the user if they want to schedule a new job If yes then the script enters a new job with the corresoponding date of the button. Anyway everything works but the bottom where i want it to delete record If cancel is pressed.
What do I do?
2)When you enter the id number i want it to lookup the customer and insert it in the customer column.
I put a lookup in the field rules for ID but it does not want to work properly. If i manly insert the id number it works fine.
What can I do to fix this?
Thanks as always Brian
Comment