This topic is locked

Some basic stuff

5/25/2007 10:01:24 AM
PHPRunner General questions
D
dcrera author

Hi,
I am trying to assign a field FIELD1 a value = to FIELD2 on the Onload Event on an Edit form.
This should be simple enough (well for some).
How would I achieve the above and

How would I reference FIELD1 in the context of

  1. Edit form
  2. List Form
  3. Delete Form
  4. View Form
    I am using a Oracle database
    Sorry for my ignorance.
    Thanks

Sergey Kornilov admin 5/25/2007

EditOnLoad event is not designed to deal with field values.
In BeforeEdit you can use $values["FIELD1"] and $values["FIELD2"] to access field values.
Probably you can explain what exactly you trying to achieve to get better advice.

D
dcrera author 5/28/2007

Hi,
I have a process to fit and defit an equipment.
When this option is selected from the menu, the equipment that is currently fitted must move to a field that stores the equipment that was defitted and the field that previously had the current equipment must be set to spaces, prompting the user to assign a replacement equipment.
I want this to happen when the screen is presented.
What you suggested, happens when the record is updated.
ALSO, I want to create two separate EDit forms for the same table, because the process for each presentation is quite different. How can I do this.
Thanks

EditOnLoad event is not designed to deal with field values.

In BeforeEdit you can use $values["FIELD1"] and $values["FIELD2"] to access field values.
Probably you can explain what exactly you trying to achieve to get better advice.