Hi
Using V2025.12
I have a view page and and edited the Hyperlink and when I hover over it I get this
https://xxxxxx/FeedbackAdd?id=4
and when clicked it takes me to the FeedbackAdd page as expected
Now I need it to prefill the ID field on the FeedbackAdd page but am not sure how
Pointers appreciated
Kind Regards
John B
mobhar
2
Simply put this following code in Page_Render server event of your Add Page:
$this->id->EditValue = Get("id");
Hi
So that failed
on the view page we have
https://xxxxxx/FeedbackAdd?id=4
and this in
Page_Render server event Add \ Copy Page:
$this->id->EditValue = Get("id");
I now get
# 502 Bad Gateway
Kind Regards
John B
So an update and possibly a better description
I have a page
https://xxx/ImagesView/6?showdetail= from the images table and each image has a unique id
and i added the hyperlink in the view of the page this - so i get this
https://xxxxxxx/PictureFeedbackAdd?picture_id=6
idea being to pass the unique of 6 to the PictureFeedbackAdd page and it should prefill the picture_id cell
I also added to the
Page_Render server event Add \ Copy Page:
$this->picture_id->EditValue = Get(“id”);
Whilst the page does load it does not prefill the picture_id field with the number 6
sure its going to be obvious - its passing the correct value to the page but does not prefil
Help Appreciated
John B
arbei
5
If “picture_id” is a lookup field, set the value to CurrentValue.
mobhar
6
Wrong param name, it should be picture_id instead of id.
You may try this (assume picture_id uses Textbox control):
$this->picture_id->EditValue = Get("picture_id");
Hi
So that worked as expected - is there a way to just populate and show it - currently a user can change it
Kind Regards
John B
mobhar
8
You may simply make the Textbox as read-only, by using Row_Rendered server event, for example:
if (CurrentPageID() == "add") {
$this->picture_id->ReadOnly = true;
}