dfII view type

S

Sam

Guest
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
 
Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
 
That won't work with anything other than CDBA/OA viewtypes - i.e. stuff that
can be opened in a graphics editor. See my previous posting with a solution
for this.

Regards,

Andrew.

On Mon, 29 Nov 2004 10:13:07 +0100, fogh
<cad_support@skipthisandunderscores.catena.nl> wrote:

Sam wrote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I
would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.
Hi Sam,
Do you mean this:
geGetEditCellView()->cellViewType
?
 
Thanks for your precious answer Erik;

Sam.

Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
 
Sam wrote:
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I
would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.
Hi Sam,
Do you mean this:
geGetEditCellView()->cellViewType
?
 
A better way:

objId=ddGetObj("lib" "cell" "view" "*")
viewType=objId && ddMapGetFileViewType(objId)

The "*" argument tells ddGetObj to access the file referenced by the
master.tag.

Regards,

Andrew.


On 28 Nov 2004 00:52:19 -0800, erikwanta@starband.net (Erik Wanta) wrote:

Sam:
Probably not the best way, but ...

objid=ddGetObj("lib" "cell" "view")

foreach(file objid~>files
when(member(ddMapGetFileViewType(file) ddMapGetViewTypeList())
viewType=ddMapGetFileViewType(file)
) ; when
) ; foreach

---
Erik


Sam <agnes.sam@NoSpamfree.fr> wrote in message news:<co7974$sc5$1@newshost.mot.com>...
Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill command. How
can I do this?

Thanks,

Sam.
 
On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.
; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
 
But as I mentioned in previous solutions, this approach won't work for a
textual cellView, because you can't do the geOpen(). Sam was asking
about "text" views.

I gave a solution for this in a previous post in this thread (in fact I then
wrote this up as a sourcelink solution too).

Nice try though ;-)

Best Regards,

Andrew.

On Fri, 10 Dec 2004 16:53:20 GMT, Stefan Robert
<s.robert.N0T@R3Q.usherbrooke.ca> wrote:

On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.

; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
 
Yeah I saw your message after my post.

On 2004-12-11 17:48:37 -0500, Andrew Beckett
<andrewb@DcEaLdEeTnEcTe.HcIoSm> said:

But as I mentioned in previous solutions, this approach won't work for a
textual cellView, because you can't do the geOpen(). Sam was asking
about "text" views.

I gave a solution for this in a previous post in this thread (in fact I then
wrote this up as a sourcelink solution too).

Nice try though ;-)

Best Regards,

Andrew.

On Fri, 10 Dec 2004 16:53:20 GMT, Stefan Robert
s.robert.N0T@R3Q.usherbrooke.ca> wrote:

On 2004-11-26 07:54:16 -0500, Sam <agnes.sam@NoSpamfree.fr> said:

Hello all,

How is it possible to get cell dfII view type of a view defined into dfII?
For example I have a "text" view available in my library browser, and I would
be able to get its type (defined in data.reg file) trough a skill
command. How can I do this?

Thanks,

Sam.

; First open the window and get the window:ID
wid = geOpen( ?lib libName ?cell cellName ?view viewName ?mode "r" )

; Get the database ID of the cell inside that window
cv = geGetWindowCellView( wid )

; Then get the cellViewType
cellViewType = cv~>cellViewType

Hope this help!

Stefan Robert
Universite de Sherbrooke
 

Welcome to EDABoard.com

Sponsor

Back
Top