SmartClient trial package: SmartClient_v111p_2017-11-02_Evaluation
Below is the use case which I am trying to implement using smartclient:
- I have a stored procedure(VALIDATE_USER_ID) defined in oracle database which returns STATUS_MSG(success/failure)
- Connect to Oracle DB from smartclient: Achieved using admin console
- I have implemented login screen in smartclient which takes "username" and "password" as input
- On click of login button, I want to make call to "VALIDATE_USER_ID" from smartclient and pass "username" and "password" as parameters
- Read and display STATUS_MSG of the above call on the login screen
What I have in place:
- JS file for login screen
- Datasource file attached to login screen
What did I try:
Used operationBinding tag to invoke strored procedure, but I am not able to send any add/remove/update request from client while I am able to fetch data from database using "operationType"=fetch.
<DataSource ID="LoginDialog" serverType="sql" dataFormat="isc" tableName="AA_USERS">
<fields>
<field name="USER_ID" type="text" hidden="true" primaryKey="true"/>
<field name="USER_ID" type="text" title="User ID" required="true"/>
<field name="PASSWORD" type="text" title="Password" required="true"/>
</fields>
<operationBinding operationType='add' operationId='newuser'>
<customSQL>
call AA_USER_MANAGEMENT.VALIDATE_USER_LOGIN(AA_USERS.USER_ID,AA_USERS.PASSWORD)
</customSQL>
</operationBinding>
</DataSource>
Stored procedure function signature:
PROCEDURE VALIDATE_USER_LOGIN(I_LOGIN_USER_ID IN VARCHAR2,
I_Password IN VARCHAR2,
O_STATUS OUT VARCHAR2,
O_ERROR_MSG OUT VARCHAR2);
Queries:
- How to implement button click function in javascript for the above usecase?
- What am I missing in the above syntax written in *.ds.xml file?
Thank You
Nandini
Below is the use case which I am trying to implement using smartclient:
- I have a stored procedure(VALIDATE_USER_ID) defined in oracle database which returns STATUS_MSG(success/failure)
- Connect to Oracle DB from smartclient: Achieved using admin console
- I have implemented login screen in smartclient which takes "username" and "password" as input
- On click of login button, I want to make call to "VALIDATE_USER_ID" from smartclient and pass "username" and "password" as parameters
- Read and display STATUS_MSG of the above call on the login screen
What I have in place:
- JS file for login screen
- Datasource file attached to login screen
What did I try:
Used operationBinding tag to invoke strored procedure, but I am not able to send any add/remove/update request from client while I am able to fetch data from database using "operationType"=fetch.
<DataSource ID="LoginDialog" serverType="sql" dataFormat="isc" tableName="AA_USERS">
<fields>
<field name="USER_ID" type="text" hidden="true" primaryKey="true"/>
<field name="USER_ID" type="text" title="User ID" required="true"/>
<field name="PASSWORD" type="text" title="Password" required="true"/>
</fields>
<operationBinding operationType='add' operationId='newuser'>
<customSQL>
call AA_USER_MANAGEMENT.VALIDATE_USER_LOGIN(AA_USERS.USER_ID,AA_USERS.PASSWORD)
</customSQL>
</operationBinding>
</DataSource>
Stored procedure function signature:
PROCEDURE VALIDATE_USER_LOGIN(I_LOGIN_USER_ID IN VARCHAR2,
I_Password IN VARCHAR2,
O_STATUS OUT VARCHAR2,
O_ERROR_MSG OUT VARCHAR2);
Queries:
- How to implement button click function in javascript for the above usecase?
- What am I missing in the above syntax written in *.ds.xml file?
Thank You
Nandini
Comment