Substitutions for ui.popupRecord
Hi all -
What are the other solutions to ui.popupRecord? Ninox said back in v3.8 that it, and a bunch of other commands, are being depreciated. Though it hasn't yet.
I've seen urlOf but that is like openRecord. I need something that just does popup.
10 replies
-
In what context do you use the
popupRecord
function? Can you show the JS code you use? -
You could also do this using Ninox script. With Ninext, you can call a Ninox function from JavaScript, pass parameters to it, and retrieve its return value. This means you could use Ninox's popupRecord directly without going through ui.popupRecord.
I’ve included several examples in the NinoxCallBack form of the Ninext2.1 application as an attachment.
Here is the script that is in the formula 'Show valuer after input'.
--- Function called by the input element when it loses focus. ---; function onblur(inputValue : text) do alert(--- Input of record { this.Id } is { inputValue } ---) end; --- The HTML input element has an ID composed of myInput followed by the ID of the current record. This ensures that, in case of multiple overlapping forms, this specific element can be identified. The onblur event calls the ninext.callNinocFunction function. The first parameter is the name of the Ninox function to call. The second is the ID of the HTML element. This ID allows ninext to locate the corresponding formula and identify the Ninox function inside it. The following parameters are those to be passed to the function when called. Here, we passed the input field value to display it. ---; html(--- <input id="myInput{ this.Id }" class="nx-input nx-input--editing" style="width: 100%; height: 100%;" onblur="ninext.callNinoxFunction('onblur', this.id, this.value )"> My button </button> ---)
-
Ninox has responded and the deprecation was only for global variables. Which I guess is what it actually says. :)
-
I have problem here, Somw idea
onclick = ui.popupRecord('{ recordId }')"
let recordId := text(raw(l)); "<tr " + --- onclick = ui.popupRecord('{ recordId }')" --- + "> <td " + --- onclick = ui.popupRecord('{ recordId }')" --- + "><span class='status " + statusClass + "'>" + switch l.Format do case 1: "CD" case 2: "CD'2" case 3: "CD'3" case 4: "CD & DVD" case 5: "CD's Box" default: "Unknown" end + "</span></td> <td " + --- onclick = ui.popupRecord('{ recordId }')" --- + ">" + l.Name + "</td> <td " + --- onclick = ui.popupRecord('{ recordId }')" --- + ">" + l.Title + "</td>
Content aside
- Status Answered
- 2 wk agoLast active
- 10Replies
- 124Views
-
5
Following