From: | Tuvia Vinitsky |
To: | Thierry Nivelet (FoxInCloud) |
But after more checking, I found the problem. The view was based on 1 underlying table, and I think something was going haywire. I added a joined table to force a physical temp file, and it seems to be OK.
...dodefault()
what do you have in parent method?
Thanks. Found the issue there.
What am I doing wrong to display the dropdown? I think you told me this before, sorry. Here is the code in the Init of the control:
IF NOT thisform.wlHTMLgenthis.RowSource = "" thisform.wViewParmSet('tmpfmember', 'curmainid', oSession.curmainid, .t.)* OK, got the correct recordset now * this first option gets executed:IFRECCOUNT('tmpfmember') > 0this.RowSourceType= 2this.RowSource = "tmpfmember"&& .cwhom* but the control has 0 entries in it and does not seem to be using the view as the recordsource* yet no error is produced and all the control properties seem to be set correctly.* is there something I am not refrshing that I should be?ELSEthis.RowSourceType= 1this.RowSource="Cannot list family"ENDIFENDIFDODEFAULT()
Tuvia,
Could you set a breakpoint in aw.vcx!awFrm.wViewsRequery(), on this line:
ll__Result__ = m.ll__Result__ AND m.ll__View__
m.ll__View__ = .T. means view was requeried successfully.
if !m.ll__View__, m.lc__Result__ tells you why
Thanks
Fmember.person_id = ( ?curmainid );
Hi Tuvia,
What is the WHERE clause in your view definition?
if I suspend, the value of osession.curmainid is correct. During that suspend, I tried .wViewParmSet again from the command window. It ran fine, but still returned an empty set. then from the command window I did a VFP requery(), and the records were populated.
I keep wondering if it has to do with having a form that inherits its data session.
Hi Tuvia
Is the second parameter of the wViewParmSet ('curmainid'), the parameter of the view 'tmpfmember' ?
Is oSession.curmainid a public object?
Regards
Gilles
I think I am doing something wrong, and I think it was answered before, but I cannot find any notes on it.
I have a form that calls a child form. In the init of a dropdown I have this, problem commented:
this.RowSource = ""* ------------------------------------------------------* this is the problem. the view was opened by the parent form, and we are in the default datasession of this* form, so we can access the view tmpfmember. I have confirmed that oSession.curmainid is set to the correct* value. No error is produced, but the return view always has 0 records.* -------------------------------------------------------- thisform.wViewParmSet('tmpfmember', 'curmainid', oSession.curmainid, .t.)*IFRECCOUNT('tmpfmember') > 0this.RowSourceType= 2this.RowSource = "tmpfmember"&& .cwhomELSEthis.RowSourceType= 1this.RowSource="Cannot list family"ENDIF