Something curious about g_form.getLabelOf('SysBoomBah');

tobrien
Kilo Guru

As I was pondering issues associated with an Update Set containing changes to the INCIDENT TABLE and FORM scripts such that I do not want to "break" some older incidents but allow NEW ones to use the new functionality, I was surprised to find something I did not expect.

I *expected* that what would be returned from a statement such as:

g_form.getLableOf('Any_Made_Up_Column_Name_You_Please');

returns what you entered if the column does not exist (as if the column DOES exist.)

No big deal, but just unexpected.

1 REPLY 1

tobrien
Kilo Guru

Sorry -- I just reread this ==> changes below:



As I was pondering issues associated with an Update Set containing changes to the INCIDENT TABLE and FORM scripts such that I do not want to "break" some older incidents but allow NEW ones to use the new functionality, I was surprised to find something I did not expect.



I *expected* that what would be returned from a statement such as:



g_form.getLableOf('Any_Made_Up_Column_Name_You_Please');



was an empty string or even an error but what IS returned is what you entered - if the column does not exist (as if the column DOES exist.)



No big deal, but just unexpected.