Procedure Editor

OK. Now I'm getting a error (392) LocalizationManager shared variable has not yet been created.


--- In vantage@yahoogroups.com, "Sean McDaniel" <smcdanie@...> wrote:
>
> I think this will help.
>
> You can update a column in a table using the UpdateTableBuffer
>
> And from help:
>
>
> Update Table Buffer
>
>
>
>
> Use the Update Table Buffer program to assign a value to a table field from
> outside of a particular window. This program is useful when you want to
> connect the entries in one field to the entry in another field,
> automatically.
>
> For example, you may want a Product Configurator input to update another,
> existing value as part of an OnLeave expression for a field. Use this
> program to perform such an update.
>
>
> Syntax
>
>
> Use the following syntax for this program:
>
> Run lib\UpdateTableBuffer.p(input BUFFER <Table>:HANDLE, '<Field>',<Value>)
>
> The entire statement should fit on one line.
>
>
> Description of Parameters
>
>
> Replace the terms in caret marks <> as follows:
>
>
> <Parameter>
>
> Meaning
>
>
> Table
>
> The table that has the field to be updated
>
>
> Field
>
> The field to be updated
>
>
> Value
>
> The value that the field should hold.
>
>
>
> The value could be a literal term (for example, 123) or it could be a named
> input from Product Configurator or a custom program.
>
>
> Example
>
>
> An order line should specify OurConfiguredPart as the part number. An input
> on the configuration screen should specify the quantity. The goal is to have
> the Quantity field on the configuration screen update the Quantity field on
> Sales Order Line Entry (which is OrderDtl.OrderQty).
>
> Specify the Quantity input as usual on the Detail tab in Product
> Configurator Inputs. Then, on the OnLeave tab, enter the following logic:
>
> Some of the words in the code are bracketed. Do not enter them yourself.
> They are in this help topic only as comment.
>
> [These first four lines declare and assign the current order and line
> numbers to variables]
> def var OrderNum as integer.
> def var OrderLine as integer.
>
> OrderNum = GetCurrentOrderNum().
> OrderLine = GetCurrentOrderLine().
>
> [This if statement validates that the update instruction is done for the
> company, order number and line with this input]
>
> If OrderNum > 0 and OrderLine > 0 then do:
> Find OrderDtl where OrderDtl.Company = "VN10T" and Orderdtl.OrderNum =
> OrderNum and OrderDtl.OrderLine = OrderLine no-lock no-error.
>
> [And then perform the update with the value entered in the input]
> Run lib\UpdateTableBuffer.p(input BUFFER OrderDtl:HANDLE, 'OrderQty',
> Quantity).
>
> End.
>
> The buffer handle statement passes the instance of the table name to the
> table record that was retrieved from the Find statement in the previous
> statement.
>
> The result of this example is that when OurConfiguredPart is entered on an
> order line, and the part is Configured, the Quantity input will accept a
> number (for example, 100). When that screen is closed, and the user returns
> to the Sales Order Line Entry window, the standard Quantity field also will
> show 100.
>
>
>
>
>
> From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
> sanfranc415
> Sent: Tuesday, March 16, 2010 12:45 PM
> To: vantage@yahoogroups.com
> Subject: [Vantage] Procedure Editor
>
>
>
>
>
> It doesn't look like my version allows me to make changes to the database?
>
> Can somebody confirm if this is true with Vantage? Or, I'm I missing
> something?
>
> --tj
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
I have a procedure (*.p) that I just created. When I right click on it and tell it to run, it runs, but when it finishes it opens up the procedure editor. Is there a way to prevent the program from opening the procedure editor after it runs?

Thanks,

Jasper





[Non-text portions of this message have been removed]
Jasper,
try adding a QUIT to the bottom of the procedure.


_____

From: Jasper Recto [mailto:jrecto@...]
Sent: Wednesday, November 05, 2003 9:45 AM
To: Vantage Groups (E-mail)
Subject: [Vantage] Procedure Editor


I have a procedure (*.p) that I just created. When I right click on it and
tell it to run, it runs, but when it finishes it opens up the procedure
editor. Is there a way to prevent the program from opening the procedure
editor after it runs?

Thanks,

Jasper





[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor

<http://rd.yahoo.com/M=259395.3614674.4902533.1261774/D=egroupweb/S=17050071
83:HM/A=1524963/R=0/SIG=12o885gmo/*http://hits.411web.com/cgi-bin/autoredir?
camp=556&lineid=3614674&prop=egroupweb&pos=HM>

<http://us.adserver.yahoo.com/l?M=259395.3614674.4902533.1261774/D=egroupmai
l/S=:HM/A=1524963/rand=437960225>

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
<http://groups.yahoo.com/group/vantage/links>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .



[Non-text portions of this message have been removed]
Jasper,
If you plan on running this procedure from vantage you will find that
QUIT will also close the Vantage session. You could use this:
apply "CLOSE":U to this-procedure. /* this will close only this
procedure and not vantage. */

return no-apply.

I got this tip from this group .
Mark Dupuis


-----Original Message-----
From: PLAMAN DICK [mailto:dick.plaman@...]
Sent: Wednesday, November 05, 2003 10:20 AM
To: 'vantage@yahoogroups.com'
Subject: RE: [Vantage] Procedure Editor


Jasper,
try adding a QUIT to the bottom of the procedure.


_____

From: Jasper Recto [mailto:jrecto@...]
Sent: Wednesday, November 05, 2003 9:45 AM
To: Vantage Groups (E-mail)
Subject: [Vantage] Procedure Editor


I have a procedure (*.p) that I just created. When I right click on it
and
tell it to run, it runs, but when it finishes it opens up the procedure
editor. Is there a way to prevent the program from opening the procedure
editor after it runs?

Thanks,

Jasper





[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor


<http://rd.yahoo.com/M=259395.3614674.4902533.1261774/D=egroupweb/S=17050071

83:HM/A=1524963/R=0/SIG=12o885gmo/*http://hits.411web.com/cgi-bin/autoredir?
camp=556&lineid=3614674&prop=egroupweb&pos=HM>


<http://us.adserver.yahoo.com/l?M=259395.3614674.4902533.1261774/D=egroupmai
l/S=:HM/A=1524963/rand=437960225>

Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have
already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
<http://groups.yahoo.com/group/vantage/files/.>
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
<http://groups.yahoo.com/group/vantage/messages>
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links
<http://groups.yahoo.com/group/vantage/links>

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .



[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT




Useful links for the Yahoo!Groups Vantage Board are: ( Note: You must
have already linked your email address to a yahoo id to enable access. )
(1) To access the Files Section of our Yahoo!Group for Report Builder and
Crystal Reports and other 'goodies', please goto:
http://groups.yahoo.com/group/vantage/files/.
(2) To search through old msg's goto:
http://groups.yahoo.com/group/vantage/messages
(3) To view links to Vendors that provide Vantage services goto:
http://groups.yahoo.com/group/vantage/links

Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


[Non-text portions of this message have been removed]
I have procedure that prompts the user for a job number and then uses that job number to filter a report:

It uses this statement as it's filter criteria:
rb-filter-value = "JOBHEAD.COMPANY = " + "'" + "LOC" + "'" +

" And PORel.OpenRelease = " + TRUE +

" And JOBHEAD.JOBNUM = " + "'" + jobnum1 + "'" .

The problem I'm having is that the PORel.OpenRelease field is a logical field. It's either a yes or no. How would I write the statement so it evaluates the PORel.OpenRelease field as 'True'?

Thanks,
Jasper


[Non-text portions of this message have been removed]
OK. I'm able to run queries and search the database, but how can I update the fields? I suppose I'd use the command UPDATE?

I'd like to know if somebody can point me in the direction of good documentation on the web for making changes to the db with the Procedure Editor specifically?

I found this link to run queries, which was extremely helpful:

http://www.google.com/url?sa=t&source=web&ct=res&cd=6&ved=0CCcQFjAF&url=http%3A%2F%2Fmaine.gov%2Flabor%2Flmis%2Fwin-202%2Fdownloads%2FQueries%2FQuery%2520Class%2FQuery%2520Course.doc&ei=CbWeS-mIB4H4sQOp-7m_Aw&usg=AFQjCNHwb8pXuXmSq2TVWqXE1_WivvPfog&sig2=9oHR4rbbPh4POJQ7M3iEzA

Thanks,

-sf
It doesn't look like my version allows me to make changes to the database?

Can somebody confirm if this is true with Vantage? Or, I'm I missing something?

--tj
I think this will help.

You can update a column in a table using the UpdateTableBuffer

And from help:


Update Table Buffer




Use the Update Table Buffer program to assign a value to a table field from
outside of a particular window. This program is useful when you want to
connect the entries in one field to the entry in another field,
automatically.

For example, you may want a Product Configurator input to update another,
existing value as part of an OnLeave expression for a field. Use this
program to perform such an update.


Syntax


Use the following syntax for this program:

Run lib\UpdateTableBuffer.p(input BUFFER <Table>:HANDLE, '<Field>',<Value>)

The entire statement should fit on one line.


Description of Parameters


Replace the terms in caret marks <> as follows:


<Parameter>

Meaning


Table

The table that has the field to be updated


Field

The field to be updated


Value

The value that the field should hold.



The value could be a literal term (for example, 123) or it could be a named
input from Product Configurator or a custom program.


Example


An order line should specify OurConfiguredPart as the part number. An input
on the configuration screen should specify the quantity. The goal is to have
the Quantity field on the configuration screen update the Quantity field on
Sales Order Line Entry (which is OrderDtl.OrderQty).

Specify the Quantity input as usual on the Detail tab in Product
Configurator Inputs. Then, on the OnLeave tab, enter the following logic:

Some of the words in the code are bracketed. Do not enter them yourself.
They are in this help topic only as comment.

[These first four lines declare and assign the current order and line
numbers to variables]
def var OrderNum as integer.
def var OrderLine as integer.

OrderNum = GetCurrentOrderNum().
OrderLine = GetCurrentOrderLine().

[This if statement validates that the update instruction is done for the
company, order number and line with this input]

If OrderNum > 0 and OrderLine > 0 then do:
Find OrderDtl where OrderDtl.Company = "VN10T" and Orderdtl.OrderNum =
OrderNum and OrderDtl.OrderLine = OrderLine no-lock no-error.

[And then perform the update with the value entered in the input]
Run lib\UpdateTableBuffer.p(input BUFFER OrderDtl:HANDLE, 'OrderQty',
Quantity).

End.

The buffer handle statement passes the instance of the table name to the
table record that was retrieved from the Find statement in the previous
statement.

The result of this example is that when OurConfiguredPart is entered on an
order line, and the part is Configured, the Quantity input will accept a
number (for example, 100). When that screen is closed, and the user returns
to the Sales Order Line Entry window, the standard Quantity field also will
show 100.





From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of
sanfranc415
Sent: Tuesday, March 16, 2010 12:45 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Procedure Editor





It doesn't look like my version allows me to make changes to the database?

Can somebody confirm if this is true with Vantage? Or, I'm I missing
something?

--tj





[Non-text portions of this message have been removed]
If you are on version 6.10 or similar, you would need the 'pro-Vision' development package to write procedured that update the DB.

--- On Tue, 3/16/10, sanfranc415 <sanfranc415@...> wrote:


From: sanfranc415 <sanfranc415@...>
Subject: [Vantage] Procedure Editor
To: vantage@yahoogroups.com
Date: Tuesday, March 16, 2010, 12:45 PM


Â



It doesn't look like my version allows me to make changes to the database?

Can somebody confirm if this is true with Vantage? Or, I'm I missing something?

--tj











[Non-text portions of this message have been removed]