Maximo Open Forum

 View Only
Expand all | Collapse all

How to Read attributes of Columns after ctx.overrideCol function

  • 1.  How to Read attributes of Columns after ctx.overrideCol function

    Posted 01-20-2023 13:51
    Hi All,

    I am new to Maximo automation scripts; my question is How to read the column value after using ctx.overrideCol function of same column.

    ex: ctx.overrideCol("NAME", "USER1")

    I want to read the same "NAME" from ctx, can we read it?

    Any suggestions would be appreciated.

    Thank you.
    #Integrations
    #Spatial

    ------------------------------
    Ramanjaneyulu Jagarlamudi
    Cyient
    ------------------------------


  • 2.  RE: How to Read attributes of Columns after ctx.overrideCol function

    Posted 01-23-2023 00:31
    mbo = ctx.getMbo();  -- Gives you MBO that you are dealing with
    struc = ctx.getData();  -- Give you data structure from Context
    name = struc.getCurrentData("NAME");  -- Give you value of NAME tag 

    you can loop through Name tag and read the values and then put those which are similar.

    ------------------------------
    Prashant Sharma
    Sedin Technologies
    Connect with me @ https://www.linkedin.com/in/psharmamaximo/

    #IBM Champion 2022
    ------------------------------



Newest Episode
Ep. 4 | System Properties in IBM Maximo

Watch Steven Shull walk through practical IBM Maximo system properties that can improve usability, query behavior, attachment handling, and the overall Maximo user experience.

MORE by Naviam Episode 4 cover
Watch Episode 4
Also available: Ep. 3 | Work Order Role-Based Application