dbTalk Databases Forums  

Where does OR frame script code reside?

comp.databases.ingres comp.databases.ingres


Discuss Where does OR frame script code reside? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
droesler
 
Posts: n/a

Default Where does OR frame script code reside? - 05-05-2009 , 11:18 AM






I've just started to look at OR. I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis

Reply With Quote
  #2  
Old   
Bodo
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 12:02 PM






On May 5, 6:18*pm, droesler <droes... (AT) comcast (DOT) net> wrote:
Quote:
I've just started to look at OR. *I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. *I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. *In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis
Have you configured OpenROAD to use an external editor?
Do not change the name of the (temporary) file when saving.

The script should be saved with the frame source in the repository
(database).
There is no external file storage - OpenROAD is not using source code
files.


Reply With Quote
  #3  
Old   
Tom Robinson
 
Posts: n/a

Default Re: [Info-Ingres] Where does OR frame script code reside? - 05-05-2009 , 12:53 PM



Hi Dennis,

The frame script code resides in system catalogues within the code
database you have defined for your current OpenROAD workbench profile. A
source file is not stored in the same way as it is in ABF. However, when
you choose to edit a script, it is temporarily saved to a file which is
then opened by the default editor.

I wonder if your problem is the location in which this temporary file is
being created has a space in the name. If you're on Windows then try
setting II_TEMPORARY to c:\temp (assuming this exists). Do this by:

ingsetenv II_TEMPORARY c:\temp

I'm sure this group won't mind you posting this question here but look
at (the all new improved) OpenROAD Users Mailing List if you have more
OpenROAD questions:

http://groups.google.com/group/openroad-users?lnk=srg

Hope this helps.

Cheers,

Tom

Tom Robinson
Luminary - An Ingres Company

For more information on Luminary go to http://www.luminary.co.uk
Luminary Solutions Limited Registered in England No 4854134 VAT Reg No.
829 3166 13
Registered Office: Lacon House, Theobald's Road, London, WC1X 8RW

-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com
[mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of
droesler
Sent: 05 May 2009 17:19
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: [Info-Ingres] Where does OR frame script code reside?

I've just started to look at OR. I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://www.kettleriverconsulting.com...fo/info-ingres


Reply With Quote
  #4  
Old   
srq49
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 01:15 PM



On May 5, 11:02*am, Bodo <Bodo.Bergm... (AT) ingres (DOT) com> wrote:
Quote:
On May 5, 6:18*pm, droesler <droes... (AT) comcast (DOT) net> wrote:

I've just started to look at OR. *I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. *I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. *In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis

Have you configured OpenROAD to use an external editor?
Do not change the name of the (temporary) file when saving.

The script should be saved with the frame source in the repository
(database).
There is no external file storage - OpenROAD is not using source code
files.
Yes, I'm using an external editor and I'm not changing the name of the
temporary file, but it doesn't seem that the changes are being stored
in the repository.

Cheers

Dennis


Reply With Quote
  #5  
Old   
srq49
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 01:27 PM



On May 5, 11:53*am, "Tom Robinson" <Tom.Robin... (AT) luminary (DOT) co.uk>
wrote:
Quote:
Hi Dennis,

The frame script code resides in system catalogues within the code
database you have defined for your current OpenROAD workbench profile. A
source file is not stored in the same way as it is in ABF.
I kind of came to this conclusion as I got in to this. Not sure I
like this so much as it makes it difficult to (re)view source code
unless you're in the workbench environment, and have the frame open
for edit.

Quote:
I wonder if your problem is the location in which this temporary file is
being created has a space in the name. If you're on Windows then try
setting II_TEMPORARY to c:\temp (assuming this exists). Do this by:

ingsetenv II_TEMPORARY c:\temp
The temporary file is being created in C:\opt\IngresII\ingres\temp,
which is where II_TEMPORARY points to.

Quote:
I'm sure this group won't mind you posting this question here but look
at (the all new improved) OpenROAD Users Mailing List if you have more
OpenROAD questions:

http://groups.google.com/group/openroad-users?lnk=srg

Thanks for the pointer to the OpenRoad group. Wasn't aware that it
was there.

Cheers

Dennis


Reply With Quote
  #6  
Old   
Peter van Bennekom
 
Posts: n/a

Default Re: [Info-Ingres] Where does OR frame script code reside? - 05-05-2009 , 01:28 PM



When using an external editor you have to close the editor before it shows up in the repository. The OpenROAD editor does this automagically for you.

Peter van Bennekom | Sr. Principal Architect | Infor | office: +1 (610) 407-8113 | fax: +1 (610) 407-8027 | mailtoeter.vanbennekom (AT) infor (DOT) com


-----Original Message-----
From: info-ingres-bounces (AT) kettleriver...ting (DOT) com [mailto:info-ingres-bounces (AT) kettleriverconsulting (DOT) com] On Behalf Of srq49
Sent: Tuesday, May 05, 2009 2:16 PM
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: Re: [Info-Ingres] Where does OR frame script code reside?

On May 5, 11:02*am, Bodo <Bodo.Bergm... (AT) ingres (DOT) com> wrote:
Quote:
On May 5, 6:18*pm, droesler <droes... (AT) comcast (DOT) net> wrote:

I've just started to look at OR. *I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. *I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. *In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis

Have you configured OpenROAD to use an external editor?
Do not change the name of the (temporary) file when saving.

The script should be saved with the frame source in the repository
(database).
There is no external file storage - OpenROAD is not using source code
files.
Yes, I'm using an external editor and I'm not changing the name of the
temporary file, but it doesn't seem that the changes are being stored
in the repository.

Cheers

Dennis
_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://www.kettleriverconsulting.com...fo/info-ingres



Reply With Quote
  #7  
Old   
Bodo
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 01:40 PM



On May 5, 11:53 am, "Tom Robinson" <Tom.Robin... (AT) luminary (DOT) co.uk>
wrote:


Quote:
...
However, when
you choose to edit a script, it is temporarily saved to a file which is
then opened by the default editor.
That's in fact not the case - the default editor just uses the script,
which is a StringObject, in a multiline entryfield.
Only if you use an external editor a temporary file is used.


Reply With Quote
  #8  
Old   
Bodo
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 01:45 PM



On May 5, 8:15*pm, srq49 <droes... (AT) comcast (DOT) net> wrote:
Quote:
On May 5, 11:02*am, Bodo <Bodo.Bergm... (AT) ingres (DOT) com> wrote:





On May 5, 6:18*pm, droesler <droes... (AT) comcast (DOT) net> wrote:

I've just started to look at OR. *I've created a frame with some
fields and when I go to Tools->Scripts a frame script template is
opened. *I added some code and saved and quit the file.

If I go to Tools->Scripts again a frame script template is opened
again, but the previous edits are not there. *In ABF one of the
attributes of a frame was the name of the script source code file, but
I don't see that attribute in the Frame property inspector.

Dennis

Have you configured OpenROAD to use an external editor?
Do not change the name of the (temporary) file when saving.

The script should be saved with the frame source in the repository
(database).
There is no external file storage - OpenROAD is not using source code
files.

Yes, I'm using an external editor and I'm not changing the name of the
temporary file, but it doesn't seem that the changes are being stored
in the repository.

Cheers

Dennis- Hide quoted text -

- Show quoted text -
Which editor are you using?
What are your settings of II_WINDOWEDIT and II_WINDOWVIEW?
I expect II_W4GL_SYSTEMEDITOR=TRUE.

I assume that you do not:
- open the frame "read only"
- "Discard changes" when leaving the frame editor

Bodo


Reply With Quote
  #9  
Old   
droesler
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 03:10 PM



On May 5, 12:45*pm, Bodo <Bodo.Bergm... (AT) ingres (DOT) com> wrote:
Quote:
Which editor are you using?
Visual SlickEdit

Quote:
What are your settings of II_WINDOWEDIT and II_WINDOWVIEW?
II_WINDOWEDIT points to Visual SlickEdit and
II_WINDOWVIEW points to vi.

Quote:
I expect II_W4GL_SYSTEMEDITOR=TRUE.
Yes.

Quote:
I assume that you do not:
- open the frame "read only"
The frame is opened for "edit"

Quote:
- "Discard changes" when leaving the frame editor
I issue a :wq (using vi mode in Visual SlickEdit). At first I just
did a :w, then thought maybe I should also close the file.

But I don't close Visual SlickEdit as there are other files open for
editing. If I need to close the editor then I suppose I could have
II_WINDOWEDIT point to vi as well.

Cheers

Dennis



Reply With Quote
  #10  
Old   
droesler
 
Posts: n/a

Default Re: Where does OR frame script code reside? - 05-05-2009 , 03:12 PM



On May 5, 2:10*pm, droesler <droes... (AT) comcast (DOT) net> wrote:
Quote:
On May 5, 12:45*pm, Bodo <Bodo.Bergm... (AT) ingres (DOT) com> wrote:



Which editor are you using?

Visual SlickEdit

What are your settings of II_WINDOWEDIT and II_WINDOWVIEW?

II_WINDOWEDIT points to Visual SlickEdit and
II_WINDOWVIEW points to vi.

I expect II_W4GL_SYSTEMEDITOR=TRUE.

Actually, I take this back :-)

I have II_EDIT and II_VIEW set. Do I need to also have II_WINDOWEDIT
and II_WINDOWVIEW set as well?

Thanks

Dennis


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.