Hello
I have made one property App, wherein I am stuck somewhere my data of two rows of two different tables doesn’t get copied in a single row of the third table using action. It gets copied through some formulas but data fetched from only one table is correct and data from other table is incorrect
First Let me provide you with details below
I have made 3 tables
1st One - “PSV SVC Sheet” - which is to keep records of Leads ( Enquiries for Properties ) with their details
2nd one - “Price Sheet” - which is to keep records of all properties with their details
3 rd one - “Cart Property” - which is to keep records of Properties selected for a particular lead
Means 3rd one - “Cart property” has columns which have some columns from both other two tables i.e “PSV SVC sheet” and “Price Sheet”
The Columns as below in each table
In “PSV SVC Sheet”
SRNO
Lead Data ID ( Unique ID Column for this table )
Registration Date
Title
CustomerName
Title 2
Email Id
age
Salary
Occupation
ETC
In “Price Sheet”
Srno
Project Id ( Unique ID Column for this table )
Property ID ( Unique ID Column for this table )
Country
State
City
Location
Area
Street
Property
Available / Sold
INVESTMENT PROPERTY
Project Name
ETC
In “Cart property”
Srno
Lead Data ID ( Same as PSV SVC sheet table 0f Leads )
CustomerName ( Same as PSV SVC sheet table 0f Leads )
Contact No.1 ( Same as PSV SVC sheet table 0f Leads )
Assigned to ( Same as PSV SVC sheet table 0f Leads )
CART PROPERTY ID ( Unique ID Column for this table )
Project Id ( Same as PRICE sheet table 0f Properties )
Property ID ( Same as PRICE sheet table 0f Properties )
Country State ( Same as PRICE sheet table 0f Properties )
City ( Same as PRICE sheet table 0f Properties )
Location ( Same as PRICE sheet table 0f Properties )
Area ( Same as PRICE sheet table 0f Properties )
Street ( Same as PRICE sheet table 0f Properties )
Property ( Same as PRICE sheet table 0f Properties )
Available / Sold ( Same as PRICE sheet table 0f Properties )
INVESTMENT PROPERTY ( Same as PRICE sheet table 0f Properties )
Now If you will see in “Cart property” I have taken Columns from Both above sheets
also I have made columns of UNIQUE IDS in all tables. which I have mentioned above besides names of Column
The idea is to copy Records of sorted properties of that particular lead (Enquiry) as per his requirement and Mail them or Whatsapp them
Also I have given reference of the PRICE table in PSV SVC sheet
So the process is as I go into the lead table and understand customers requirement of property and as per his requirement I check out Property into price sheet as per his need and finally, after matching his needs I select them and add to the “Cart property” table through action
Since there are three tables involved so I had to take action in two steps as read somewhere in-app sheet community. I am not a professional person and have limited knowledge of AppSheet, Still, I have managed to make this app as per my requirement.
In Action step 1 if you see I have done this below
Action 1: Copy PSV SVC Sheet rows to Cart Sheet for this row
For a record of this table
PSV SVC SHEET
The type of action to perform
Data: execute an action on a set of rows
Referenced Table
The table whose action will be executed
Price Sheet
View Definition
Referenced Rows
From the referenced table, these are the rows to act on
= filter(“Price Sheet”, true)
Action 2: Copy this row to Cart Sheet
In Action step 2 - I have done this below
Action 2: Copy this row to Cart Sheet
For a record of this table
Price Sheet
The type of action to perform
Data: add a new row to another table using values from this row
Table to add to
CART PROPERTY
Set these columns
Project Name = [Project Name]
Project Codename =[Project Codename]
Project Id=[Project Id]
Property ID=[Property ID]
Available / Sold=[Available / Sold]
Country=[Country]
State=[State]
City=[City
Location=[Location]
Area=[Area]
Street=[Street]
Property=[Property]
Structure=[Structure]
Const=[Const]
Possn Date=[Possn Date]
INVESTMENT PROPERTY=[INVESTMENT PROPERTY]
Unit=[Unit]
All in Price Amount=[All in Price Amount]
Lead Data ID= maxrow(“PSV SVC SHEET”, “_rownumber”)
If You See Many Columns are from Price sheet and last one “Lead Data ID” and also few such as customer name etc are from PSV Sheet ( leads sheet )
I have used that mentioned formula for LEAD DATA ID which is the unique ID of Lead table. The Next step is to go to the property and click the action 2 button to copy data of Property from the Price sheet along with Details of the Lead customer in the lead table to “CART PROPERTY”
Now I am stuck here, the issue is property data from PRICE SHEEET gets copied to CART SHEET but with wrong lead customer details from PSV SVC SHEET . I understood that this is due to the formula in Lead Data ID= maxrow(“PSV SVC SHEET”, “_rownumber”) which takes the Last lead row number clients details.
so further I changed the formula to another which was
SELECT(PSV SVC SHEET[Lead Data ID],[_rownumber]=[_THISROW].[_rownumber])
but unfortunately, this Copied lead data records according to row number of PSV SVC sheet or Row number of PRICE SHEET and not according to that particular lead under which we carted property.
Also, I tried with many other Formulas but that fetched only one table i,e PRICE Sheet Data and customer details went blank
I have Noticed that formula in LEAD DATA ID which is Unique ID column creates some Issue in fetching correct data from PSV SVC Sheet along with its selected properties details from PRICE SHEET
I hope you must have understood the whole point
Kindly help me with this
Thanks and Regards
Vijay Dama


