API Libobj functions response

Issue #193 resolved
Ali Ozdemir created an issue

I tried the new Libobj functions and here is what I see on my end.

LibObjGet and LibObjCreate returns to nothing

LibObjList returns to ObrimResponse succesfully

Comments (4)

  1. Ali Koc

    Couple of problems have been fixed in v3.160520.

    There is now a sample application also. Can you try TestLibraryObjectAPI on this link?

    https://goo.gl/RCOFvn

    Let me know if you have any problem running the sample application.

  2. Ali Ozdemir reporter

    Thanks. I tried with following order and it worked successfully. I was trying to set parameter of library object and get compiled parameters.

    #!
    
    
    createResponse=.LibObjCreate("libobjName")
    getResponse = .LibObjGet(createResponse.ObjData.ID)
    paramSetResponse = .LibObjSetParam(createResponse.ObjData.ID, "paramName", paramValue)
    compiledResponse= .LibObjGet(createResponse.ObjData.ID)
    compiledObj = compiledResponse.ObjData
    

    I can successfully read the modified parameters from "compiledObj" object.

  3. Ali Koc

    Sure, but you should not need the second line. The code should look like this:

    createResponse=.LibObjCreate("libobjName")
    paramSetResponse = .LibObjSetParam(createResponse.ObjData.ID, "paramName", paramValue)
    compiledResponse= .LibObjGet(createResponse.ObjData.ID)
    compiledObj = compiledResponse.ObjData
    
  4. Log in to comment