Pravee7094
Active Member
Hi all,
we are making a small website using b4j and html.
Doubt is, In B4j we just add this feature such as If I click the delete button, the alert box will appear.
In that alert box, there is yes or no question (Are you sure want to delete ? ). I think all of them know this feature.
Here my sample code :
In that above code, If action is true the delete operation done here. Delete code is here,
How can I insert the b4j code into the js code ?
I want this deletion code instead of this "return true; " code.
Any suggestion or Help? or Any other relevant code is available for html pages with b4j ?
Regards
Praveen
we are making a small website using b4j and html.
Doubt is, In B4j we just add this feature such as If I click the delete button, the alert box will appear.
In that alert box, there is yes or no question (Are you sure want to delete ? ). I think all of them know this feature.
Here my sample code :
B4X:
Dim str As String
str = $" $(function(){
if (confirm("Are you sure want to Delete?")) {
return true;
}
return false;
}); "$
is_websocket.Eval(str,Null)
In that above code, If action is true the delete operation done here. Delete code is here,
B4X:
sql1.ExecNonQuery2("delete from gl_uom where uompk = ? ", Array As Object(ls_uompk))
How can I insert the b4j code into the js code ?
I want this deletion code instead of this "return true; " code.
Any suggestion or Help? or Any other relevant code is available for html pages with b4j ?
Regards
Praveen