Home > Community > Forums > Custom IC SKILL > Function that returns a string value for the current cell view

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Function that returns a string value for the current cell view 

Last post Wed, Nov 28 2012 5:31 PM by jaleco. 4 replies.
Started by jaleco 28 Nov 2012 04:06 PM. Topic has 4 replies and 970 views
Page 1 of 1 (5 items)
Sort Posts:
  • Wed, Nov 28 2012 4:06 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Function that returns a string value for the current cell view Reply

    Is there a function similar to geGetEditCellView() that will return the string value of the current cell view, as opposed to its database ID number?

    For example, I have a layout view open called "MyLayout".  If I use dbFullPath(), it will give me the full path to "...MyLibrary/MyLayout/layout/layout.cdb", but I only want the string "MyLayout" returned.

    Sorry if this seems remedial.  I am having no luck finding such a function....

    • Post Points: 20
  • Wed, Nov 28 2012 5:07 PM

    Re: Function that returns a string value for the current cell view Reply

    geGetEditCellView()~>viewName

     

    • Post Points: 20
  • Wed, Nov 28 2012 5:21 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Re: Function that returns a string value for the current cell view Reply

    Thanks Andrew,

    that was close enough for me to figure it out:

    geGetEditCellView()->cellName

    returns the file name.

    geGetEditCellView()->viewName

    returns the string "layout"

    most appreciated.

     

    • Post Points: 20
  • Wed, Nov 28 2012 5:26 PM

    Re: Function that returns a string value for the current cell view Reply

     Sorry, I misread your question. BTW, it's not the "file" name. It's the cell name. They are not necessarily the same thing... (if there are unusual characters in the cell name)

    Andrew

    • Post Points: 20
  • Wed, Nov 28 2012 5:31 PM

    • jaleco
    • Top 100 Contributor
    • Joined on Wed, Mar 21 2012
    • Posts 68
    • Points 985
    Re: Function that returns a string value for the current cell view Reply

    No problem, I appreciate your help.

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by jaleco at 28 Nov 2012 04:06 PM. Topic has 4 replies.