Plex 2E

  • 1.  ASP C# PlexSystem Returned Status  - Correct method

    Posted Mar 18, 2015 01:05 AM

    Can anyone give me the correct Syntax example to Interrogate the 'PlexSystem' Table response when calling a Plex Function from ASP C#

     

    I have the function working and adding data - just need to add some Error control to handle responses - the examples only refer to the  C# Client and not the .ASP equivalent

     

    eg..

     

    dsInput = ObUserAPI.getInputParmDataSet("MyFunction.Insert_ObOut");

    ....

    ...Set input parms

    // call function

    dsOutput = ObUserAPI.callFunction(dsinput, False)

     

    // Extract *Returned Code

    string errorcode = dsOutput.Tables["PlexSystem"].Rows[0]["Returned"].ToString;

     

    the Above line does not allow me to Convert to a string the "Returned Status" (which appears to be just called 'Returned' in the Column list

     

     

    (maybe something stupid and I cant see the woods for the trees!)

     

     

    thanks

     

    Wayne



  • 2.  Re: ASP C# PlexSystem Returned Status  - Correct method
    Best Answer

    Posted Mar 23, 2015 06:02 AM

    string errorcode = dsOutput.Tables["PlexSystem"].Rows[0]["Returned"].ToString;


    should be:


    string errorcode = dsOutput.Tables["PlexSystem"].Rows[0]["Returned"].ToString(); 


    HTH

    Lorenz