Index
2005-05-30 16:00MarkStanton : cDistinctDynamicViewCursor
2005-05-31 02:10Bhavbhuti Nathwani : Re: cDistinctDynamicViewCursor
2005-06-01 05:21MarkStanton : Re: cDistinctDynamicViewCursor
2005-06-01 06:09Bhavbhuti Nathwani : Re: cDistinctDynamicViewCursor
2005-06-02 17:08MarkStanton : Re: cDistinctDynamicViewCursor
2005-06-03 01:10Bhavbhuti Nathwani : Re: cDistinctDynamicViewCursor
2005-06-05 10:53MarkStanton : Re: cDistinctDynamicViewCursor
2005-06-06 01:30Bhavbhuti Nathwani : Re: cDistinctDynamicViewCursor
2005-06-06 06:02MarkStanton : Re: cDistinctDynamicViewCursor
2005-06-06 11:03Bhavbhuti Nathwani : Re: cDistinctDynamicViewCursor
Back to top
cDistinctDynamicViewCursor

Author: MarkStanton

Posted: 2005-05-30 16:00:06   Link

OK, looks like I need to play with one of these.

How do I find the cursor name? Do I just reference it through the

BizObj "cAlias" property?

If that's the case, how would that have fixed Bhavbhuti's problem a

while back where he'd got several cursors named in his data

environment?

©2005 MarkStanton
Back to top
Re: cDistinctDynamicViewCursor

Author: Bhavbhuti Nathwani

Posted: 2005-05-31 02:10:23   Link

Hi Mark

You named me, so I have to respond :D. Not that I am up to the mark

today but here goes. How about trying oBO.GetAlias().

©2005 Bhavbhuti Nathwani
Back to top
Re: cDistinctDynamicViewCursor

Author: MarkStanton

Posted: 2005-06-01 05:21:24   Link

Quote: >>How about trying oBO.GetAlias().

Hi Bhavbhuti!

Damn! I use a method rather than referencing the property directly?

"Oooops" (that's a joke :lol: ).

Yeah, looks like CodeBook uses this method to set the BizObj's

"cAlias" property. I think this does what I want 'cos it returns the

primary alias. But my question (that mentioned you) still stands, how

would that help when the BizObj has multiple cursors reference?

That's more an exploration than something I

[b:1b26422822]need[/b:1b26422822] to know right now though 8)

©2005 MarkStanton
Back to top
Re: cDistinctDynamicViewCursor

Author: Bhavbhuti Nathwani

Posted: 2005-06-01 06:09:25   Link

Hi Mark

Quote: >>But my question (that mentioned you) still stands, how would

that help when the BizObj has multiple cursors reference?

Now my head is clearing :). I just use the other views I have

included directly, as I know the names.

©2005 Bhavbhuti Nathwani
Back to top
Re: cDistinctDynamicViewCursor

Author: MarkStanton

Posted: 2005-06-02 17:08:57   Link

Quote: >>Now my head is clearing :).

Yeah, evil stuff that booze...

Quote: >>I just use the other views I have included directly, as I

know the names.

Even if you're using "cDistinctDynamicViewCursor"???

©2005 MarkStanton
Back to top
Re: cDistinctDynamicViewCursor

Author: Bhavbhuti Nathwani

Posted: 2005-06-03 01:10:54   Link

Hi Mark

Quote: >>Yeah, evil stuff that booze...

:shock: Actually we are living in a dry state, but I was groggy with

flu medications.

Quote: >>Even if you're using "cDistinctDynamicViewCursor"???

Hey wait, this was for BO containing multiple views, one main and

other lookups.

©2005 Bhavbhuti Nathwani
Back to top
Re: cDistinctDynamicViewCursor

Author: MarkStanton

Posted: 2005-06-05 10:53:05   Link

Quote: >>:shock: Actually we are living in a dry state, but I was

groggy with flu medications.

Ooops.

Quote: >>Hey wait, this was for BO containing multiple views, one main

and other lookups.

I know. That's what I'm asking about.

If I could find the @#!!*%! place it loads the cursors I'd see what it

does. Too little time, too much to do :(

©2005 MarkStanton
Back to top
Re: cDistinctDynamicViewCursor

Author: Bhavbhuti Nathwani

Posted: 2005-06-06 01:30:10   Link

Quote: >>If I could find the @#!!*%! place it loads the cursors I'd

see what it does. Too little time, too much to do :(

Well, best of luck.

©2005 Bhavbhuti Nathwani
Back to top
Re: cDistinctDynamicViewCursor

Author: MarkStanton

Posted: 2005-06-06 06:02:51   Link

Quote: >>Well, best of luck.

Damn! That was a silent invitation for you to do the work! :oops:

OK, I've found it. It's in cdataenv.prg, which of course I shoulda

known.

On a fairly quick inspection it looks like it opens the cursors and

adds a number on the end to ensure uniqueness, and does it for all the

cursors in a dataenvironment. It seems to open an entirely separate

database for cursors opened this way too. Looks like it works (of

course).

I'm not entirely sure how you'd find the one you'd want. Whilst it

would be easy to find the list (there's an array in the

dataenvironment object) how would you find a view that you wanted? Oh

well, mebbe I'll have a play, when I've got some time (hah!)

©2005 MarkStanton
Back to top
Re: cDistinctDynamicViewCursor

Author: Bhavbhuti Nathwani

Posted: 2005-06-06 11:03:58   Link

Quote: >>Damn! That was a silent invitation for you to do the work!

:oops:

Gotcha :razz:

Quote: >>I'm not entirely sure how you'd find the one you'd want.

Whilst it would be easy to find the list (there's an array in the

dataenvironment object) how would you find a view that you wanted? Oh

well, mebbe I'll have a play, when I've got some time (hah!)

Aren't you supposed to know which one has been used. I can always

access the lookup view with it's original name. One thing that

strikes me as I am typing this is what if the same lookup view is used

in 2 BOs on the same form, then maybe I will have to use

cDistinctD...V...C... I haven't used it yet but I will try that

sometimes, but don't hold your breath :D .

©2005 Bhavbhuti Nathwani