gov.va.medora.mdo.api.ToolsApi.getVariableValue C# (CSharp) Method

getVariableValue() public method

public getVariableValue ( ConnectionSet cxns, string arg ) : IndexedHashtable
cxns gov.va.medora.mdo.dao.ConnectionSet
arg string
return IndexedHashtable
        public IndexedHashtable getVariableValue(ConnectionSet cxns, string arg)
        {
            return cxns.query("IToolsDao", "getVariableValue", new object[] { arg });
        }

Same methods

ToolsApi::getVariableValue ( gov.va.medora.mdo.dao.AbstractConnection cxn, string arg ) : string

Usage Example

Ejemplo n.º 1
0
        public TextTO getVariableValue(string sitecode, string arg)
        {
            TextTO result = new TextTO();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            if (result.fault != null)
            {
                return result;
            }

            if (sitecode == null)
            {
                sitecode = mySession.ConnectionSet.BaseSiteId;
            }

            try
            {
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                ToolsApi api = new ToolsApi();
                string s = api.getVariableValue(cxn, arg);
                result = new TextTO(s);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }