hcl-bot
September 21, 2008, 3:15pm
1
Hi all
a formula code open a form with an embedded view from another database.
everything show fine under a v6 or v7 client, but the v8 client does not show the embedded view content until i press F9.
the code, the view, the form were all designed under a v6.5.4 french designer.
do you know a way to bypass or correct the bug ?
hcl-bot
September 22, 2008, 2:07am
2
Subject: try this
Could try refreshing the form automaticly when openen.
@Command ([VIEWREFRESHFIELDS])
or UiDocument.reload()
hcl-bot
September 22, 2008, 3:03am
3
Subject: view refresh
Thanks,
i’m trying now…
edit:
tried both on the form with embedded view, on onload and queryrecalc events.
nothing happen if i do not press F9.
hcl-bot
September 22, 2008, 3:21am
4
Subject: Check field position
Does your embedded view use a single category calculated by a field later processed on the form than the e-view? If so, move the field up or even try filling it in the queryopen.
hcl-bot
September 22, 2008, 3:24am
5
Subject: view refresh
the view is effectively restricted to category by the content of a field up the view (it’s the second field on the form, then the view)
the content of the field come from the first document which open the form by clicking a button with this code:
@Command ( [Compose] ; ServerName : BusinessDbname ; “(WAffairesEnCours)”)
and the restrict to category of the embedde view contains:
AccountName
which is the second field on the form.
i’ll try to move this field on the top of the form.
hcl-bot
September 22, 2008, 3:29am
6
Subject: re
unhide those fields, see if they are filled when you open the form the first time.
hcl-bot
September 22, 2008, 3:29am
7
Subject: fields
the first field is SaveOptions.i’ve unhide it and it is well calculated.
the second: AccountName was not hide and is always well calculated.
hcl-bot
September 22, 2008, 3:36am
8
Subject: almost working
i’ve just tried to put @Command ([VIEWREFRESHFIELDS])
in the queryrecalc event of the form loaded and the view is visible now but i got this message:
attempted execution of nested event mask
(google traduction)
hcl-bot
September 22, 2008, 3:45am
9
Subject: found the solution…thanks for help
Ok, you put me on the way to resolve the problem.
the AccountName field was “computed for display”, and this is working on V6 or V7 client.
but with a V8 standard client, it had to be just “computed” and now the view is appearing well in the form without refreshing or reloading anything.
many thanks for the help.