Domen Dolar - 2025-10-05

The re is simple build in way to add label-description from pop up LOV into tbe block.

1.Create LOV. The LOV have id and label values.

2.Set LOV to the filed where shall be triggered. Field is type of INPUT (or null)

In this case when you double click on field the LOV will be opened in pop up window.

3.In the block where is your field create new field with name:

fieldnamewhereissetlov +** LABEL **

like: USER_ID - is fiealed with LOV Users then we create field USERIDLABEL

The result is:

**
Additional tips:
If you would like to set value from label/description to many fields you have to:
**

1.Create fields to fill data into. In this case %LABEL field will be probably hidden.
2.Use this Javascript

function splitStringRASD(str) {   
    const deli = str.split("_");
    if(deli.length < 3) return ""; 
    return deli.slice(deli.length - 2).join("_");
}

$(document).ready(function() {
    let polje = "B10USER_ID";
    $(".rasdTx"+polje+" input").on("change", function() {
        let post = splitStringRASD( $(this).attr("id") );
        let vrednost = $("#"+polje+"LABEL_"+ post).val();

      //Additional fields where you set values ...
        $("#B10TEXT3_"+ post).val(vrednost.substring(1, 10));
        $("#B10TEXT4_"+ post).val(vrednost.substring(10, 20));  

    });
});
 

Last edit: Domen Dolar 2025-10-05