Skip to Content

Is there any way to get TYPEPKSTRING in flexi query result?

Hello Folks,

Is there any way to get TYPEPKSTRING in flexi query result?

I am getting result if i do run like this : select TYPEPKSTRING from {COMPENSATION}

While I am running this select {TYPEPKSTRING} from {COMPENSATION} i am getting below exception Exception message: cannot search unknown field 'TableField(name='TYPEPKSTRING',langPK='null',type=HMCOMPENSATION)' within type HMCOMPENSATION unless you disable checking

Any help/hint is appreciated. Thanks! =============== Thanks & Regards, Arpit

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Dec 28, 2017 at 11:07 AM

    You're looking for the itemtype attribute that is inherited from the Item type.

    e.g.

     select {itemtype} from {compensation}
    

    or try something like this to see how it joins to composedtype

     select {ct.pk},{ct.code}
     from {product as p join composedtype as ct on {p.itemtype}={ct.pk}}
    
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 02, 2018 at 10:34 AM

    Yes - It work like a charm and i could accomplish what i was looking for.

    Thanks!

    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.