I need to execute the following script when enterted into the view/page,
i=self.view.params.row_id
query = "SELECT name, drawingno, product FROM drawing_master WHERE id = ?"
params = [i]
result = system.db.runPrepQuery(query, params)
if result:
row = result[0] # Assuming only one row is fetched
column1_value = row["name"]
column2_value = row["drawingno"]
column3_value = row["product"]
self.parent.parent.getChild("FlexContainer_0").getChild("Name_text").props.text = column1_value
self.parent.parent.getChild("FlexContainer_0").getChild("drawing_no_text").props.text = column2_value
self.parent.parent.getChild("FlexContainer_1").getChild("TextField").props.text = column3_value
When I click the one button in page A it will navigates me to Page B. When Enterted into the Page B , need to runs this script. Kindly help me on this. I was really stuck!