Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Updating a view column that is an expression
Message
From
08/03/2018 10:34:25
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Updating a view column that is an expression
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01658618
Message ID:
01658618
Views:
69
Hi all,

Is there any way to mark updatable a column in a view that is an expression? i.e. the expression is:

PADR(DecryptString(Bank_Name),50) AS Bank_Name

but this does not show up in the view designer as a field that can be updated (2nd last tab).

Why would I want to do this - the bank info is encrypted and so I wanted to pull it out of the table into a view and decrypt the fields on the fly. Once in the view, the user can edit and then before posting back the results, I encrypt the fields).

I first did this by pulling the encrypted data into the view and then decrypting the fields before presenting to the user. But this dirties the view such that I don't know if the user made the changes or my code.

Any suggestions?

Albert
Next
Reply
Map
View

Click here to load this message in the networking platform