ALP for Fields Question

View: New views
2 Messages — Rating Filter:   Alert me  

ALP for Fields Question

by Michael Cook-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using ALP for Fields for the first time and am a bit confused.
I set up one ALP object on the 2nd page of my dialog, created the code in
the Advanced Properties Dialog, copied and pasted into a method and all is
well.

Then I set up another ALP object on the first page of the Dialog. Created
the code in the APD, copied and pasted and have a problem.
This first line of code returns an error code of 1, not a file.
It is a file!

$Error:=AL_SetFile (alOMCRecords;Table(->[ChryslerOMCItems]))
 `[ChryslerOMCItems]

I tried:

$Error:=AL_SetFile (alOMCRecords;76)

Same error code.

All of these commands run fine, but no records show in the ALP Object.

$Error:=AL_SetFields (alOMCRecords;76;1;1;1)  `[ChryslerOMC]OMCNumber
$Error:=AL_SetFields (alOMCRecords;76;2;1;2)  `[ChryslerOMCItems]PartNumber
$Error:=AL_SetFields (alOMCRecords;76;3;1;3)  `[ChryslerOMCItems]OrderQty
$Error:=AL_SetFields (alOMCRecords;76;4;1;4)  `[ChryslerOMCItems]BalanceQty
$Error:=AL_SetFields (alOMCRecords;76;5;1;6)
 `[ChryslerOMCItems]PartValidated
$Error:=AL_SetFields (alOMCRecords;76;6;1;7)
 `[ChryslerOMCItems]OrderItemCreated

Does anyone have an idea why it does not seem to like this Table?

Thanks,

--
Michael Cook
The Michaels Group
Austin, TX
**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************

Re: ALP for Fields Question

by Michael Cook-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Problem Solved.I deleted the ALP Object and recreated it. Now it works.

Michael


On Tue, May 27, 2008 at 2:57 PM, Michael Cook <myklcook@...> wrote:

>
> I am using ALP for Fields for the first time and am a bit confused.
> I set up one ALP object on the 2nd page of my dialog, created the code in
> the Advanced Properties Dialog, copied and pasted into a method and all is
> well.
>
> Then I set up another ALP object on the first page of the Dialog. Created
> the code in the APD, copied and pasted and have a problem.
> This first line of code returns an error code of 1, not a file.
> It is a file!
>
> $Error:=AL_SetFile (alOMCRecords;Table(->[ChryslerOMCItems]))
>  `[ChryslerOMCItems]
>
> I tried:
>
> $Error:=AL_SetFile (alOMCRecords;76)
>
> Same error code.
>
> All of these commands run fine, but no records show in the ALP Object.
>
> $Error:=AL_SetFields (alOMCRecords;76;1;1;1)  `[ChryslerOMC]OMCNumber
> $Error:=AL_SetFields (alOMCRecords;76;2;1;2)  `[ChryslerOMCItems]PartNumber
> $Error:=AL_SetFields (alOMCRecords;76;3;1;3)  `[ChryslerOMCItems]OrderQty
> $Error:=AL_SetFields (alOMCRecords;76;4;1;4)  `[ChryslerOMCItems]BalanceQty
> $Error:=AL_SetFields (alOMCRecords;76;5;1;6)
>  `[ChryslerOMCItems]PartValidated
> $Error:=AL_SetFields (alOMCRecords;76;6;1;7)
>  `[ChryslerOMCItems]OrderItemCreated
>
> Does anyone have an idea why it does not seem to like this Table?
>
> Thanks,
>
> --
> Michael Cook
> The Michaels Group
> Austin, TX
>



--
Michael Cook
The Michaels Group
Austin, TX
**********************************************************************
The 4D v11 SQL Roadshow - coming to a city near you!
http://www.4D.com/roadshow/index.html

4th Dimension Internet Users Group (4D iNUG)
FAQ:  http://www.4d.com/support/faqnug.html
Archive:  http://dir.gmane.org/gmane.comp.lang.inug-4d.tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
Post: mailto:4d_tech@...
Options: https://lists.4d.com/mailman/listinfo/4d_tech
**********************************************************************
LightInTheBox - Buy quality products at wholesale price