![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In a portal I have a button that with Go to related record attached (it also sets some globals in the related file, and goes to a layout in there too). The button will create a new record if you click it on the last portal row. Does this sound like normal behavior or not? Because I can't duplicate it. I've got another two portals, and they won't create a new record from the go to related record function. I can type in the portal row alright to make a new record, but the button won't do it. I've spent some hours trying to diagnose this problem. I don't desire one behavior over the other, I just want it consistent. Any ideas? I'm tempted to do away completely with the go to related record function, because I already pass the related ID field to a global in the file, in case the user closes the preceding window and makes new records, so I could just do it the longer way. I'd like to know what I'm doing for my peace of mind. Thanks in advance. |
#3
| |||
| |||
|
|
Your problem is not caused by the Go to Related Record step. More likely, your script is setting a field in that related file that is not a global. Since your relationship is set to allow creation of records, you are inserting data and it is creating the new record for you. |
|
Project Mayhem wrote: In a portal I have a button that with Go to related record attached (it also sets some globals in the related file, and goes to a layout in there too). The button will create a new record if you click it on the last portal row. Does this sound like normal behavior or not? Because I can't duplicate it. I've got another two portals, and they won't create a new record from the go to related record function. I can type in the portal row alright to make a new record, but the button won't do it. I've spent some hours trying to diagnose this problem. I don't desire one behavior over the other, I just want it consistent. Any ideas? I'm tempted to do away completely with the go to related record function, because I already pass the related ID field to a global in the file, in case the user closes the preceding window and makes new records, so I could just do it the longer way. I'd like to know what I'm doing for my peace of mind. Thanks in advance. |
#4
| |||
| |||
|
|
Why not put an if statement into your script? Check to see if the user is clicking the last, blank row. Something like: If(Not IsEmpty(myRelatedFile::itsKeyField)) Go to related record ... End if |
|
In a portal I have a button that with Go to related record attached (it also sets some globals in the related file, and goes to a layout in there too). The button will create a new record if you click it on the last portal row. Does this sound like normal behavior or not? Because I can't duplicate it. I've got another two portals, and they won't create a new record from the go to related record function. I can type in the portal row alright to make a new record, but the button won't do it. I've spent some hours trying to diagnose this problem. I don't desire one behavior over the other, I just want it consistent. Any ideas? I'm tempted to do away completely with the go to related record function, because I already pass the related ID field to a global in the file, in case the user closes the preceding window and makes new records, so I could just do it the longer way. I'd like to know what I'm doing for my peace of mind. Thanks in advance. |
![]() |
| Thread Tools | |
| Display Modes | |
| |