Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message 'Edits to view may not be permanent' on form sta
Message
From
16/01/1999 01:34:42
 
 
To
15/01/1999 19:33:34
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00176356
Message ID:
00176827
Views:
50
>>>>>My form contains a parameterized view which supplies data for the rows of a grid. The grid data are to be read-only. When the form starts, the unwanted message "Edits to view may not be permanent" always comes up. I have tried changing the view with DBSetProp('voucsub', 'View', 'SendUpdates', .F.), but it doesn't help. The view is not accessible from the view designer.
>>>>>
>>>>>Your ideas would be most appreciated.
>>>>
>>>>Why isn't the view accessible from the form designer? What version of VFP?
>>>
>>>The version is 5.0. It is not accessible through the view designer, I assume, because it is too complicated. Almost all of my other views cannot be edited for the same reason, which seems to be common among developers on this forum. The code I use to generate the view is:
>>>
>>>create sql view voucsub as;
>>>select v.voucher_id, v1.vouc_line_no, v1.sub_id, dr_cr_code, v1.amount, v1.reference_id, v1.description, a.account_name;
>>> from account a, voucher v right join voucitem v1;
>>> on v.voucher_id = v1.voucher_id;
>>> where v1.sub_id = a.sub_id;
>>> and v1.reference_id = shipment.invoice_id;
>>> union;
>>> select v.voucher_id, v1.vouc_line_no, v1.sub_id, dr_cr_code,;
>>> s.amount, s.reference_id, s.description, a.account_name;
>>> from account a, voucher v, voucitem v1 right join subledg s;
>>> on v1.voucher_id + transform(v1.vouc_line_no,'9999');
>>> = s.voucher_id + transform(s.vouc_line_no,'9999');
>>> where v.voucher_id = v1.voucher_id;
>>> and voucher_type = 'GEN';
>>> and v1.sub_id = a.sub_id;
>>> and v1.reference_id = shipment.invoice_id
>>>
>>>if not DBSetProp('voucsub', 'View', 'SendUpdates', .F.)
>>> suspend
>>>endif
>>
>>Check out my alternative to the view designer, eView. you can get it here in the files section, under VFP in general. It allows you to edit views that are too complex for the view designer. I am still working some of the kinks out, but I think its about 98% functional. Try it and see if it solves your view problem
>
>Thanks for the information. However, I need a solution that works in code without intervention. Isn't there a way to fix the view without using a designer?

That's in eView too. You can set everything that you need to in the view, and then generate code that will create the view when run.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform