So you can, in any screen, display the data values of this row in the same way you are displaying it now in the search screen
Instead of the labels of this screen you can display the values to any label / text input in any other screen.
Thanks @muneer, I sort of understand but I were to recreate my Search screen from MANFVScreen onto myMANFVEntScreen, would I then be able to edit/ update the data and add new/ remove records on this screen? (My MANFVEntScreen that is).
Thanks,
Yes you can. Just use the appropriate Data Source block along with the app variable that holds the row data values in case of update. You will also need to store the row number or (row ID) so you can update the selected row.
Ok thanks @muneer, I am still not very sure but I shall try to have a go at this. I will let you know how I get on with it. Would those Data Source blocks be the purple ones? I really donât understand the use/ concept of ârow idâ ( fingers crossed ).
Ok @muneer, I have now duplicated my MANFVScreen onto my MANFVEntScreen. Would I replace the Labels 1-7 blocks with text input blocks so that they can be edited?
It seems to be the only thing I can think of to resolve amend/update issue. If this is the case how do I create a âSubmitâ action to enter the new or updated data into my Google Sheet?
I have updated the demo project to show the edit screen. The add new is empty but I wanted to show the edit screen and the use of the blocks so it becomes clear to you.
Hi @muneer, many thanks for your suggestion. The idea looks very good. I have copied your blocks into my project but have found that there are now no results showing on the âMANFVSearchâ after an item has been clicked. Please see image below:
I created a âD-UMMYâ record directly into my Source Data Google Sheet (MAN First Visits) in the âFVENTRYFORMâ tab. (see below) so that I could try editing the âD-UMMYâ record.
âŚuntil I added the " Label Visible blocks set to âtrueâ " for some reasonâŚ
How do I create a confirmation message to notify the user that the record has been successfully or unsuccessfully entered into, or removed from the Google Sheet?
To create the New Entry Screen would I just copy the Edit Screen into the MANFVEdit screen into the New Entry Screen?
Also, how do I allow the user to delete an entry without leaving empty rows in my Source Data Google Sheet?
This is dependent on your coding. In my example, I was setting visibility of row1 & row2 to true/false. Those rows are containing all the labels instead of setting each label separately.
[Edit]
See that I make sure the two rows are hidden
Hi @muneer, yes that was how I had blocks set up. ( The same as your sample images). But for some reason, that didnât work . All good with that issue now. Many thanks.
I have some more questionsâŚ
My entries made on my âFVEditScreenâ are no longer updating into my Data Source Google Sheet (MAN First Visits). It worked once then stopped. What would cause this?
How do I create a confirmation message to notify the user that the record has been successfully or unsuccessfully entered into, or removed from the Google Sheet?
To create the New Entry Screen would I just copy the Edit Screen into the MANFVEdit screen into the New Entry Screen?
Also, how do I allow the user to delete an entry without leaving empty rows in my Source Data Google Sheet?
as in my previous image in my previous post I created a âD-UMMYâ record which I typed directly into my âMAN First Visitsâ âFVENTRYFORMâ tab of my Data Source Google Sheet and then from my project app I tried editing on the âFVEditScreenâ in the âLive Testâ mode. It worked perfectly on the first try. But, when I tried to edit it again a little while later, it would not update after I had modified âLabel Visibilityâ
Also, in the create row block against âREG valueâ; âC/N valueâ etc⌠would I have to use the âAddRecText_InputREGâS/Textâ component; âAddRecText_InputREG/Textâ component etc⌠in the âCreate Rowâ block as Iâve shown below?
âŚand what do I put in the âCreate Rowâ blockâs âDoâ space?
I will ask about the âdelete rowâ block when I get to it.
Can you explain why are you searching on âFVâ Google sheet tab and then want to update a different tab. Each tab in the Google sheet file is concerned a separate data source and are not related to each other.
Hi @muneer, the reason for this is the âFVâ Google Sheet is used for my website and the data is automatically and capitalized from the data entered into the âFVENTRYFORMâ Google Sheet. No data can be directly entered into âF/Vâ Google Sheet because of all the formulas. The only way to enter data into the âFVâ Google Sheet is via the âFVENTRYFORMâ Google Sheet.
Because the âFVâ Google Sheet is in an organised format that is the Google Sheet I wish to display as some the entries into the âFVENTRYFORMâ Google Sheet are a mixture of upper and lower and would look very messy if displayed.
I also have noticed that all of the Input Label displaying a value of ânullâ instead of displaying the âhintsâ as laid out on the Design Page. Do you know why this is so? (See below)
Hi @muneer, I have just tried your above suggestion for the âSaved Statusâ message but it doesnât seem to work. Is this because the edit page doesnât seem to be doing anything?
This will make things very difficult. We will not be able to know why changes are not taking place. Do we blame Thunkable or Google sheet formulas?
This means you are using the wrong row_number and again because you are taking the row_number from one tab in the Google sheet and should be used to refer to another tab. It can work and it can break.
Hi @muneer, I have been painstakingly going the âFVâ Data Source on the Google Sheet and found there were only a handful of entries in âlowercaseâ format. So I think I will change all sources to âFVENTRYFORMâ to see if that helps.
I have changed all the Google Sheet Data Sources to âFVENTRYFORMâ (- which means they are all using the same source) and the update entries are now working!!
But the confirmation messages werenât working. So I have used your latest solution and now it all works as intended except for the presence of all of the Input Labels displaying a value of ânull â instead of displaying the âhints â as laid out on the Design Page .
Then I just have the Delete functions and the Add New Entry screen to tackle