- Tue Feb 28, 2017 7:28 am
#789428
I have a PM Table name CXO_VISIT_DATE (Fields: CXONAME, STARTDATE, ENDDATE, LOCATION, COMMENT).
Sample Data: Now I want to get STARTDATE from CXO_VISIT_DATE and want to store in a DateTime (Name: D1) variable. I have a field in Dynaform where I want to show that DateTime by D1.
My Attempt:
@@currentUser_1 --> String
CXONAME --> Varchar
Sample Data: Now I want to get STARTDATE from CXO_VISIT_DATE and want to store in a DateTime (Name: D1) variable. I have a field in Dynaform where I want to show that DateTime by D1.
My Attempt:
@@currentUser_1 --> String
CXONAME --> Varchar
Code: Select all
$uid= @@USER_LOGGED;
@@currentUser_1 = @@USER_LOGGED;
$result = executeQuery("SELECT STARTDATE FROM PMT_CXO_VISIT_DATE WHERE CXONAME = @@currentUser_1");
@=DateTimeFromPMTable = $result;