Derive name of application of type "Text" from constant of type "Application"

Is anyone aware of a way of deriving the name of an application, of type "Text", from a constant of type "Application" ?

OriginalPostID-228246

OriginalPostID-228246

  Discussion posts and replies are publicly visible

Parents
  • Not elegant but demo's the point. Not sure if there is a proper function or not as i've not had chance to play with 16.3 yet

    = load(
    local!myText: tostring(getcontentobjectdetailsbyid( cons!YourConstant))
    ,
    local!NamePos: find("Name:", myText )
    ,
    local!UUIDPos: find("UUID:", myText )
    ,
    local!myTextLen: len(local!myText)

    ,

    mid(local!myText, local!NamePos +5, local!UUIDPos - local!NamePos - 7 )

    )
Reply
  • Not elegant but demo's the point. Not sure if there is a proper function or not as i've not had chance to play with 16.3 yet

    = load(
    local!myText: tostring(getcontentobjectdetailsbyid( cons!YourConstant))
    ,
    local!NamePos: find("Name:", myText )
    ,
    local!UUIDPos: find("UUID:", myText )
    ,
    local!myTextLen: len(local!myText)

    ,

    mid(local!myText, local!NamePos +5, local!UUIDPos - local!NamePos - 7 )

    )
Children
No Data