on 2024 Jul 30 9:37 AM
Hello SAP Community,
I’m currently working on a project using the SAP Mobile Development Kit (MDK) and have encountered an issue with accessing the selected value from a Segmented Control. Despite following the documentation and various examples, I can’t seem to retrieve the value correctly.
// Function to update counters based on selected value
function Update_Frage_02(clientAPI) {
const selectedValue = clientAPI.evaluateTargetPath("#Page:Mobile_Evaluator_Fragen/#Control:FormCell_Segmented_02/#Value");
// Update counters based on the selected value
if (selectedValue === "Tage") {
clientAPI.getClientData().HybridAppCounter += 3;
clientAPI.getClientData().WebAppCounter += 3;
} else if (selectedValue === "Wochen") {
clientAPI.getClientData().HybridAppCounter += 3;
clientAPI.getClientData().WebAppCounter += 3;
} else if (selectedValue === "Monate") {
clientAPI.getClientData().HybridAppCounter += 3;
clientAPI.getClientData().WebAppCounter += 3;
clientAPI.getClientData().NativeAppCounter += 3;
}
}
Request clarification before answering.
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.