I HAVE AN APPLICATION WITH 3 PAGES: MAIN, DETAILS, EDIT/NEW
WHEN I CLICK ON AN EXISTING RECORD, IT TAKES ME TO THE DETAILS SCREEN FOR THAT RECORD. THEN WHEN I CLICK THE EDIT BUTTON ON THE TOP RIGHT CORNER IT TAKES ME TO THE EDIT SCREEN. MY PROBLEM IS: EACH RECORD HAS MULTIPLE DROPDOWNS, WHERE EACH DROP DOWN COMES FROM A SEPERATE TABLE FROM EXCEL SPREADSHEET. SO WHEN THE EDIT SCREEN COMES UP, IT SHOWS ENTRIES ON THE DROPDOWNS THAT ARE NOT SELECTED FOR THIS RECORD. IT JUST HAS RANDOM VALUES FROM THE DROPDOWNS SELECTED. HOW CAN I HAVE THOSE VALUES SELECTED INITIALLY WHEN THE EDIT SCREEN COMES UP.
SIMILAR TO 1ST QUESTION, WHEN I WANT TO ADD A NEW ENTRY, THE SAME PRE SELECTED DROP DOWNS ARE SELECTED. HOW CAN I MAKE IT WHERE WHEN A NEW RECORD IS ADDED, THE DROPDOWNS ARE PRE SELECTED/FILLED WITH THE 1ST ENTRY IN THE TABLE FROM EXCEL SPREADSHEET (WHICH IS: '-').
PLEASE IF ANYONE CAN HELP ME FIX THESE ISSUES ASAP I'D REALLY APPRECIAITE IT!
Thank you for the help. My problem to question #2 was resolved. Unfortunately, the formula's you gave me for problem #1, I had already had those same formulas logged in but unfortunately its still the same problem. When I click the edit button and it directs me to the edit screen, the drop downs are now just pre-filled to "-" (which is the first entry in the tables the drop downs are getting their source from).This is okay when making a complete new entry, but i can not have this when editing an already extisting entry.
There are a total of 8 drop downs. Each drop downs Item property is simply the name of the table which was imported from excel.
Please if anyone can help me resolve this issue ASAP that would be greatly appreciated.
Ok so I got my question to work partially. For all the dropdowns default property I put the following: If(EditForm1.Mode = FormMode.New,First(DataClass).'C1 Data Classification',EditForm1.Mode = FormMode.Edit,Parent.Default)\
For new entries, this works like a charm (all the fields are blank). But for exisitng records which I need to edit, it works partially. Some of the records/entries edit screen dropdowns are pre-filled to the previous selections (GOOD). But, some records/entries edit screen dropdowns are pre-filled to blank ("-"). Not all the dropdowns of that record, but sometimes 1, 2, or 3 of them (usually the same ones). i beleive it is all random. I dont know why this is. Dont know what i am doing wrong or what is causing this issue.
Please, if anyone can help resolve this issue ASAP I would greatly appreciate it.