Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Displaying value other than controlsource in grid
Message
 
 
To
08/02/1999 16:05:32
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00185208
Message ID:
00185270
Views:
16
John, I think this may be the answer I am looking for. It seems this would be faily common stuff when using surrogate keys. You don't want to display the keys.
Thanks for the help, I'll try this later.


>A really goofy way to do this is to bind on the descriptive field (resolves what's displayed) and use a view and do a REPLACE on the key on LostFocus. This is what I've been forced to do in the past.
>
>>>>>I think that sparse property should do this. Also, there is really another way to do this job:
>>>>
>>>>Sparse shows the boundcolumn, which is the surrogate key. I don't want to display the surrogate key.
>>>>
>>>>I want to change the key value, but display the discriptive value.
>>>
>>>Currently, I use the next column to display the discriptive field. It's ControlSouce is bound to the surrogate key in the lookup view. I use the second view and set a relation to it to avoid having to requery every time the user changes the supervisor. I only requery after the user choses to do an update. The user can change many records before update.
>>
>>Sorry, the only thing I understand is that you set some relations. Whatever these relations are, you should not use them within a grid: they will give you tons of funny-looking problems.
Previous
Reply
Map
View

Click here to load this message in the networking platform