Dear all:
Now i have a question, maybe it is small case for you, but it is hard for me to achieve it until now.
My porposal is that i need to set four Global variables for my app and write them in sharepoint list four columns dynamically. I need to run sequence approval from this app.
They are ApproverEmail(Single line of TEXT)、ApprovalLevel(Number)、ApprovalLog(multi line of text)、ApprovalStatus(Single line of TEXT)
ApproverEmail is used to record Approver's Email address by lookup function from anotherlist(You have solved this case for me), i need to store it into a variable and write it into column and change it time to time.
ApprovalStatus is used to record Approval status, for example ,Submitted\Approving\Approved\Rejected, i need to store it into a variable and write it into column and change it time to time by different status of approval.
ApprovalLevel is used to record Approval Level, the initial value is 1, if the first person have appproved, ApprovalLevel need to calculate automatically ApprovalLevel = ApprovalLevel+1, .........i need to store it into a variable and write it into column and change it time to time
ApprovalLog is used to record Approver's comments during approval. i need to record his name automatically when he give comments and approver can view previous approver's comments. .i need to store it into a variable and write it into column and change it time to time

I added a button named as "Approve", when i click this button, it will write his comments into ApprovalLog with his name and set ApprovalLevel = ApprovalLevel+1 , then send email to next approver automatically.

I don't know how to set variables in apps and set them into onchange property.

Would you please help me for these cases?
Thanks for your support:)