Open Record in full view mode from table / view
- Christian_Sennewald
- 4 wk ago
- 14replies
Dear Community,
is there a possibility to open a record in full view mode instead of the popUpMode when clicking a row in a table or view?
Many Thanks
Christian
14 replies
-
- szormpas
- 4 wk ago
- Reported - view
Hi, you mean something like the openFullscreen(nid) ?
-
- Christian_Sennewald
- 4 wk ago
- Reported - view
yes! Exactly.
but how to trigger that while clicking on a tables row?!?
thanks
chris
-
- szormpas
- 4 wk ago
- Reported - view
If you're happy to use the View Widget, you can add an extra button to open the selected record in full screen.
-
- Christian_Sennewald
- 3 wk ago
- Reported - view
Do you have an example on how to configure such a button to call the openRecord() Ninox function?
I did not found such button in the Dashboard example...
many thanks
Chris -
- Christian_Sennewald
- 3 wk ago
- Reported - view
have you ever tried to render an image in a cell (for example a photo of an user...)
Cheers
Chris -
- szormpas
- 3 wk ago
- Reported - view
I'm working on this.
-
- szormpas
- 3 wk ago
- Reported - view
If you want to add images, hyperlinks, and buttons to a cell, you'll need to use Custom Cell Components like below:
https://www.ag-grid.com/javascript-data-grid/component-cell-renderer/
-
- Christian_Sennewald
- 3 wk ago
- Reported - view
Define a function:function ImageRenderer(params) { var img = ''; var url = ''; if (params != null && params.value != null && params.value.length > 0) url = 'myUrl/files/download/' + params.value; else url = 'myUrl/files/download/A68/defaultUser.jpeg'; img = '<span style=\""display:block;text-align:center;width:60px;\""><img src=\""' + url + '\"" style=\""height:50px; background-color:#f00;\"" /></span>'; return img; }
Define the column spec:
{ field: 'Foto', headerName: '', cellDataType: 'text', minWidth: 80, maxWidth: 80, cellRenderer: ImageRenderer },
-
- szormpas
- 3 wk ago
- Reported - view
Hi,
I've added both the image display and the open button to my View Widget. You can download the latest version of Dashboard (v11.4).
All you have to do is choose one or more records and then press the Open Button to pop up all of them.
As another option, you could add an action button (open) to each row. Just keep in mind that if your table has a lot of rows, you'll end up with a ton of addEventListener() methods, which might slow down your browser.
Thanks for your contribution!
-
- Christian_Sennewald
- 3 wk ago
- Reported - view
Hy
a small improvement for the imageCellRenderer...
let ninoxImageUrl := "https://dbde0053.ninox.com/" + teamId + "/" + databaseId + "/files/download/"; function imageCellRenderer(params) { if (params && params.value && params.value.length > 0 && params.value != undefined) { const imgElement = document.createElement('img'); var imageUrl = '" + ninoxImageUrl + "'; imgElement.src = imageUrl + params.value; imgElement.style.width = '100%'; imgElement.style.height = '100%'; imgElement.style.objectFit = 'contain'; return imgElement; } else return document.createElement('span'); };
-
- Christian_Sennewald
- 3 wk ago
- Reported - view
have you ever seen this warning?
We may run in trouble ... :/
-
- Ninox partner
- RoSoft_Steven.1
- 3 wk ago
- Reported - view
Yes, you see this error in the console. No worries, The newest Ninox CRM is also based on these global Window Objects.
-
- szormpas
- 3 wk ago
- Reported - view
I know that's a possibility, but I'm hoping that even if Ninox does decide to deprecate this internal method, they'll replace it with something similar.
-
- szormpas
- 3 wk ago
- Reported - view
Hi,
This is a good sign!
Content aside
-
1
Likes
- 3 wk agoLast active
- 14Replies
- 105Views
-
3
Following