Hi All,
I am facing an error when opening a summary view of a record.
I am attaching a screenshot please help me out.
Thanks in advanced.
Discussion posts and replies are publicly visible
Please check are you building the record summary page using a FromJson function and in it probably you are not getting the correct or validate json.
Can you add a screenshot of the configurations of this interface as a record view and the code you have on this interface? As the error states, this error is because the JSON you are trying to parse is not a valid one.
I have created summary view from the record itself.
Screenshots, please? There is no point in assuming what went wrong. If you can add the things I said, I can review them and let you know what is wrong there.
We need more details to be able to help.
Certainly Yes!
Things look in place here. Can you also add the interface code/expression?
Sure here it is.
{ a!cardLayout( contents: { a!sectionLayout( label: "Job Listed", labelColor: "#000000", contents: { a!columnsLayout( columns: { a!columnLayout( contents: { a!textField( label: "Title", labelPosition: "JUSTIFIED", value: a!defaultValue( ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{1cf78f6b-1b58-4eaa-82be-5d4fa6bb1016}Title'], "–" ), readOnly: true ), a!textField( label: "Technology", labelPosition: "JUSTIFIED", value: ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{5ec4eed7-f8af-4238-ab9c-2fa0a2c65614}Technology'], saveInto: {}, refreshAfter: "UNFOCUS", readOnly: true, validations: {} ), a!textField( label: "Experience Range", labelPosition: "JUSTIFIED", value: ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{d86ee890-c93d-4624-b5d6-9871ab302ef8}Experience'], saveInto: {}, refreshAfter: "UNFOCUS", readOnly: true, validations: {} ), a!textField( label: "Location", labelPosition: "JUSTIFIED", value: a!defaultValue( ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{aafea1fd-0f9a-4c62-926f-604a6a2e2295}Location'], "–" ), readOnly: true ), a!integerField( label: "Num Of Openings", labelPosition: "JUSTIFIED", value: ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{1d676c5d-c23a-46fc-b333-9e7abb408d37}Openings'], saveInto: {}, refreshAfter: "UNFOCUS", readOnly: true, validations: {} ), a!textField( label: "Added By", labelPosition: "JUSTIFIED", value: a!defaultValue( ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{bf33aba7-aa7d-4708-a24c-f15cd4f4d795}AddedBy'], "–" ), readOnly: true ), a!richTextDisplayField( label: "Added On", labelPosition: "JUSTIFIED", value: if( isnull( ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{5084e36a-42e9-472f-b475-34b51e236456}AddedOn'] ), "–", { a!richTextIcon(icon: "calendar", color: "SECONDARY"), " ", a!richTextItem( text: text( ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{5084e36a-42e9-472f-b475-34b51e236456}AddedOn'], "mmmm d, yyyy" ) ) } ) ) } ), a!columnLayout( contents: { a!textField( label: "Job Description", labelPosition: "ABOVE", value: ri!job['recordType!{18bfb717-35a3-4216-82e4-f366b5306651}TP Job.fields.{fe292d5d-9f47-414a-a755-3f401ad172cb}Description'], saveInto: {}, refreshAfter: "UNFOCUS", readOnly: true, validations: {} ) } ), a!columnLayout(contents: {}) } ) } ) }, height: "AUTO", style: "#d5a6bd", shape: "SEMI_ROUNDED", marginBelow: "STANDARD", showBorder: false, showShadow: true )}
Strange, code is working fine as well. Can you please sync the record type once and test the summary page.