Last post Sep 18, 2018 01:38 AM by Ackerly Xu
Sep 16, 2018 01:45 PM|JagjitSingh|LINK
I want to allow user to create formula like this . It can be in some other way also.
PurchaseAmount - (PercentVariable * SaleAmount) / 100
Sep 17, 2018 09:19 AM|Ackerly Xu|LINK
What 's the background of your requirement?
Do you want to allow the user to create formula, and the user could provide parameters for the formula and calculate the result?
If possible , could you provide your code?
Sep 17, 2018 10:14 AM|JagjitSingh|LINK
I wanted to allow user to write any formula in Textbox. That will be saved in database. Is there any other best way to do
Sep 18, 2018 01:38 AM|Ackerly Xu|LINK
If so , because you need to save your data in database, you need a button to save your data in database. You also need a user table to record to whom the formula belongs to.
That's to say, the user must have logged in .So your app should have login logic and register logic.
About how to register and login , please refer to
After that , you also need to create a formula table which references user table.
When the user click the button, you should get the current user who has logged in and save your formula data with the formula's userId equaling to the user's id.