I've created a browse of appointments for our clients. For ease of use (and just because I wanted to try something new) I created an x-Dialog of the browse. simple enough, go to browse properties, advanced, create x-Dialog with embedded browse.
So far, so good.
The x-dialog browse performs as expected and all are happy with it.
The initial intent of the browse has changed now, we need to view either "in-person" or "Phone" appointments (Using field "Type") and I will need to change the filter.
Once again, simple enough, go back to the initial browse, modify the filter for a new variable, and see if it works. If so, copy the browse filter definition to the saved x-dialog browse and we're good to go.
Not Quite!
While the browse itself works just great with the new filter, the x-dialog throws an error, and this is with the generated code!
Code within "normal" browse:
Original X-Dialog Browse definition code:
New X-Dialog code matching Browse Code:
For some reason, I cannot upload the image of the error message, so I'll spell it out:
Message box "Alpha Five"
Exclamation symbol "Cannot use function in this context"
"OK" Button
Debugging it, all varibles are defined and
Does anyone have any idea as to why the error would come up in an embedded x-dialog browse and not on the regular browse?
Thanks,
Tom
Tom
So far, so good.
The x-dialog browse performs as expected and all are happy with it.
The initial intent of the browse has changed now, we need to view either "in-person" or "Phone" appointments (Using field "Type") and I will need to change the filter.
Once again, simple enough, go back to the initial browse, modify the filter for a new variable, and see if it works. If so, copy the browse filter definition to the saved x-dialog browse and we're good to go.
Not Quite!
While the browse itself works just great with the new filter, the x-dialog throws an error, and this is with the generated code!
Code within "normal" browse:
Code:
A_Date =Var->appointment_date .and. alltrim(Type)=Var->anst
Code:
<browse width="1248" height="711" data_entry_style="modeless" restrict_enter="yes" restrict_change="yes" restrict_delete="yes" restrict_find="yes" restrict_range="yes" restrict_index="yes" restrict_query="yes" gridline_horizontal="yes" gridline_vertical="yes" restrict_column_resize="yes" restrict_column_move="yes" restrict_column_delete="yes" row_height="21"[COLOR="#FF0000"] filter="(a_date = Var->Appointment_Date ) .and. ( alltrim(Type) <> "Phone" )"[/COLOR] order="toseconds(A_Time)+WORD(Name,2)">
Code:
<browse width="1248" height="711" data_entry_style="modeless" restrict_enter="yes" restrict_change="yes" restrict_delete="yes" restrict_find="yes" restrict_range="yes" restrict_index="yes" restrict_query="yes" gridline_horizontal="yes" gridline_vertical="yes" restrict_column_resize="yes" restrict_column_move="yes" restrict_column_delete="yes" row_height="21"[COLOR="#FF0000"] filter="(A_Date = Var->appointment_date ) .and. ( alltrim(Type)=Var->anst )" [/COLOR]order="toseconds(A_Time)+WORD(Name,2)">
Message box "Alpha Five"
Exclamation symbol "Cannot use function in this context"
"OK" Button
Debugging it, all varibles are defined and
Does anyone have any idea as to why the error would come up in an embedded x-dialog browse and not on the regular browse?
Thanks,
Tom
Tom
Comment