Forum Replies Created

  • Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 1 year ago
    Up
    0
    Down
    ::

    Ich habe das ganze jetzt in einem Script gelöst, da ich es mit dem Binding im Moment nicht hinbekommen habe…

    Das ganze sieht dann so aus:

    if ((this.getItemValue('Meldung', 'CheckBox_User_allow', 'selected') == true)) { this.getGlobals().setVar('USER_STRUCT','j', 'allowed'); } else {this.getGlobals().setVar('USER_STRUCT','n', 'allowed');}

    So kann ich das ganze mehrfach untereinander kopieren, die Felder der Checkbox (CheckBox_User_allow) und der Variable (USER_STRUCT.allowed) anpassen. Bei Button Press fülle ich die Struktur und schiebe sie ins PDF.

    Vorteil ist dabei ist die freie Wahl was im String steht, da ich in der Struktur gleich String und keine Boolean mehr habe.

    mfg Ralf

    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 1 year ago
    Up
    0
    Down
    ::

    Thx Vitali,

    but that’s the other direction.

    I want the X in the key field without any process logic. i have more than 20 checkboxes to fill and every condition to select makes it more lowly

    {= ${variableHolder>/USER_STRUCT/allowed} ? 'X' : ''} <– this is the way i want to go (see checkbox-key)

    But this one is looking for the state of  /USER_STRUCT/allowed and i want to look for state of ‘this.checkbox.id.selected’ to set key as ‘X’ or ”.

    the key of checkbox used in the process ui action to fill a variable or do anything else (see  ui-action-key)

    i don’t want to create a boolean variable to save the checkbox selected, because i don’t need this value. i only need the key value X or not

    I don´t know how the syntax is in the Simplifier UI field?

    Attachments:
    You must be logged in to view attached files.
    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 2 years ago
    Up
    0
    Down
    ::

    Hello,
    same Problem with triggering press function menuitem.

    need Help how it doesn´t work with UI Widgets 1.6

    On Freemium Server it works, but on our Company Server it doesn´t.
    I think there is missing any lib or else… any ideas?

    Thx

    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 2 years ago
    Up
    0
    Down
    ::

    ^^That´s it…. Thx a lot

    greets

    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 2 years ago
    Up
    1
    Down
    ::

    Ok, this Script works,

    document.addEventListener("backbutton", onBackKeyDown, false);
    
    function onBackKeyDown() {
        var curr_page = sap.ui.getCore().byId("Application").getCurrentPage();
        console.info(curr_page.getId());
        if (curr_page.getId() === "PAGE1") {
            console.info('close pressed');
            window.navigator.app.exitApp(); // OK
        } else {
            console.info('back pressed');
            // window.navigator.app.backHistory(); // <no action
            this.navBack(); // Uncaught TypeError this.navBack is not a function
            // window.navigator.app.navBack();  // Uncaught TypeError window.navigator.app.navBack is not a function
        }
    
    }
    

    but this.navBack(); and the other variations doesn´t.
    Any Idea why?

    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 2 years ago
    Up
    0
    Down
    ::
    document.addEventListener("backbutton", onBackKeyDown, false);
    function onBackKeyDown() {
    
    // Handle the back button
    //alert('Back Button is Pressed!');
    
    if ("{actual Screen}"=== "Main")
    {
    console.info('close pressed');
    // Backbutton -> close App
    }
    else
    {
    console.info('back pressed');
    // NavTo history.back or backtoMain
    
    }
    
    }

    This works, but i don´t know how to handle the if-command and Backbutton in SAPUI…

    Need help how i ask for actual Screen and the commands how i go history (window) back and close app

     

    Ralf Hader
    Participant
    • Topics: 3
    • Replies: 7
    # 2 years ago
    Up
    0
    Down
    ::

    That´s it,

    i change it oninit Screen2 to back function…. and oninit Screen1 back to normal

     

    Ist das Script getestet? Irgendwie läuft das bei mir nicht wie gewünscht

Viewing 7 posts - 1 through 7 (of 7 total)