Skip to Content

How can I pass Edm.Guid and Edm.Boolean for p13nData types

Hi,

I am trying to customize the p13n dialog of a SmartTable.

I am using CustomData field based on this document:

<core:CustomData  key="p13nData" value='\{"columnKey": "Ledger","sortProperty": "Ledger", "filterProperty": "Ledger", "type":"numeric"}'/>

What I am looking for is the possible types that we can pass for the type property.

In the mentioned document and also in this latest reference, the only supported types are text, numeric or date.

Now my question is How can I pass Edm.Guid and Edm.Boolean for p13nData types?

For Edm.Boolean it seems I have to pass some values, if there is not a specific type.

But how about Edm.Guid? Normally Edm.Guid is passed in a special way in the filtering!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Feb 20, 2019 at 03:57 PM

    There are 2 types that are not listed in the official document of the SAPUI5 at the moment. As you mentioned in their documentation they said:

    data type of the column (text, numeric or date is supported)

    But don't worry for `Edm.Boolean` use "type":"boolean" and for `Edm.Guid` use "type":"guid".

    I tested it and it works 100% while they have not yet listed in their API documentation.

    Here is a picture of how your property looks like when you use the type boolean for your property:


    capture.png (8.5 kB)
    xwq2o.jpg (20.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.