record_status

in the onShow method of the servoy_sample_crm there is the following code:

if(globals.record_status.indexOf(“(”) > 0)

I cannot find any reference to explain it. There dosen’t seem to be any global called record_status. I have been unable to fine it searching here. My efforts to duplicate its function in my own solution have failed.

Thanks for any insight…

Charles

Did you know that it is possible to search through all your code?
In 4.0 pressing “Ctrl+h” pops up the search window and in 3.5 you’ll find it as a tab on the bottom of your editor.

Searching for “record_status”, you’ll find that globals.record_status is addressed in the globals.setupRecordStatus()-method and that a “(” is added under certain conditions.

The line

globals.record_status.indexOf("(") > 0

will return true if globals.record_status contains a “(”.

Does this make things clear?

Yes, thank you very much…

Now I can try to track down the type error of undefined element.