SQL Query in Rollbase

Posted by seema on 06-Mar-2014 01:49

How can I execute a SQL Query on click of a button in Rollbase?

All Replies

Posted by n.zuure on 06-Mar-2014 02:27

I suppose adding a onclick event to the button, in this event you execute the query.

Posted by Chandrasekhar Gontla on 09-Mar-2014 08:06

Hi Seema,

Go to Object Definition page.

Create a button.

In that button, provide script to executed sql query while creating it. And save the button.

Ex:

rbf_selectQuery("SELECT loginName FROM portalvisitor_obj where id={!id}", 10, callback);

function callback(values)

{

rbf_setFieldValue("name", values[0][0]);

}

The above code will get executed whenever you clicked on the button.

Please let me know if you have any questions.

Thanks and Regards,

Chandra.G

This thread is closed