Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Updating a view column that is an expression
Message
De
08/03/2018 10:34:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Updating a view column that is an expression
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Divers
Thread ID:
01658618
Message ID:
01658618
Vues:
67
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform