This is my code. i know its wrong because it returns null in the message there I print. What am I doing wrong.
The insert its done but I don't get the generated key.
What I want is to obtain the generated key after the insert is completed on the database.
Have a good time.
The insert its done but I don't get the generated key.
What I want is to obtain the generated key after the insert is completed on the database.
Have a good time.
Code:
final Button btn_guardar = new Button("Guardar"); btn_guardar.setWidth(140); btn_guardar.setIcon("icons/guardar.png"); btn_guardar.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { form_altapedido.saveData(new DSCallback() { @Override public void execute(DSResponse response, Object rawData, DSRequest request) { Record rs[] = response.getData(); String id2 = rs[0].getAttributeAsString("id"); System.out.println("after request is completed this method is executed" + id2); } }); } });
Comment