on 07-06-2023 11:15 AM
Hello experts,
I have a requirement to enter multiple batches for each line Item in ZBatch collection under material document item object, to achieve this requirement i am trying the integration of OpenUI with Agentry.
In Agentry screen i have created a push button. On click of this button it will trigger the open UI Screen in which I am sending some agentry fields value to OpenUI (Material, Material Document, Material Description, ZAcceptedQty, ZAddBatch) and user will be able to enter the value of batch which includes Quantity, Sled, Mfd, Batch fields where entered value should come back to agentry in loop from OpenUI to ZBatch object which is collection under MaterialDocumentItem object e.g-
Batch1, Quantity-2, Sled-02/05/2023, Mfd- 10/02/2022
Batch2, Quantity-3, Sled-10/07/2023, Mfd- 05/02/2022
I have created an action under the push button which refers to the external value where it should get value, which is coming from OpenUI to agentry, but I am not able to call the Action in android code in a loop. Property under add transaction is map to fields external value sent by OpenUI. To resolve this issue could you please help me to call the action in a loop in android code?
for your reference attaching the screenshots
Thanks and regards,
Rupesh Kumar Pandit
we had raised an incident with SAP and got reply that it would be a consulting call and can't be address through an incident.
we are now trying with ButtonDisplayAdapter and also CollectionDisplayAdapter as per the below OpenUI available documentation for Android
the observation is the getExtensionString(String) is getting invoke only for the first property and rest three defined properties not getting updated.
Also the action is not getting triggered :
public String getExtensionString(String name) {
String resultString = "";
try {
if (name.equals("Batch")){
resultString = batch.getBatch();
}else if (name.equals("Quantity")){
resultString = batch.getQuantity();
}else if (name.equals("SLED")){
resultString = batch.getSledDate();
}else if (name.equals("MFD")){
resultString = batch.getMfdDate();
}
} catch (Exception e) {
Log.e("TAG_E","Message: "+e.getLocalizedMessage());
}
return resultString;
}
public void onClick(View view) {
ZCaptureBatchAddDetails.batchModelList.addAll(batchModelList);
ZCaptureBatchAddDetails._model.executeAgentryAction("ZAddBatchOpenUI");
builder.dismiss();
finish();
}
Could anyone help us to call the action in a loop which updates the collections in agentry.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.