Expand my Community achievements bar.

SOLVED

Object 201628740 This must be an error code?

Avatar

Level 2

receiving this on my subform in place of the text that should be displayed.

I assume this is an error code.  Where do I find what exactly it means?

This is my code on a update button:

 

SFReasonNotes1.TReason.rawValue = Reason.getDisplayItem(Reason.selectedIndex);

When pressing 'preview' then the Object ### appears instead of the text that's in the Reason text field.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

this is not an error code.

It's only the object ID of the referenced object it has during runtime.

Your script won't work as the function getDisplayItem is used for objects which can have several different items such as drop down boxes or list fields.

Use:

SFReasonNotes1.TReason.rawValue = Reason.rawValue;

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

this is not an error code.

It's only the object ID of the referenced object it has during runtime.

Your script won't work as the function getDisplayItem is used for objects which can have several different items such as drop down boxes or list fields.

Use:

SFReasonNotes1.TReason.rawValue = Reason.rawValue;

Avatar

Level 2

Thank you, this worked and I learned something.