IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#19865 - 08/15/06 10:41 AM Need to loop through every 8 lines starting at line 55 for a packing slip.
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
Hello. I am working with a file that is usually used for VIPP JDTs. I am working on a packing slip. The field info I need starts in line 55 and the next line I would need would be line 63 then line 72 etc. There could be an infinite amount of fields. (They are skus). I am not sure how to write this in PlanetTalk...I am also not 100 percent sure that this needs to go through PlanetTalk. Any help would be appreciated.

Thanks.

Top
#19866 - 08/15/06 11:06 AM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
Anonymous
Unregistered


Hi:

Try this out in a PlanetPress Talk object

Code:
 
for(&I_,55,8,&current.lpp)
  if(eq(trim(@(&I_,1,80)),'')) 
    exit()
  endif()
  show(trim(@(&I_,1,80)))
  crlf(0.167)
endfor()
This will loop through all the lines from line 55 to the end of the datapage, with a step of 8 lines.

Hope this helps

Top
#19867 - 08/15/06 11:17 AM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
Thank you so much. Since I am new to PlanetPress, do I open the data selection of the sku and put this code in the PlanetTalk Before screen?

I appreciate all your help!!!! =)

Top
#19868 - 08/15/06 11:47 AM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
Anonymous
Unregistered


This would be a new PlanetPress Talk object.

There is also a way to accomplish this using the line repeat feature on the data selection.

Top
#19869 - 08/15/06 11:49 AM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
Anonymous
Unregistered



Top
#19870 - 08/15/06 11:52 AM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
Anonymous
Unregistered



Top
#19871 - 08/15/06 12:49 PM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
aoneil Offline
OL Guru

Registered: 08/11/06
Posts: 108
That worked beautifully!!! I only have one more question. =) I am trying to do a data overflow with the same data. It will show me the second page, but the data won't appear on it. It just goes onto the grey area under my page. Any ideas on what I should do? I figure 15 skus should fit on the page. I put this in the condition to exit and overflow: =&iterationcount>=15 and in the from line I have 1 and the to line I have 0.

Thanks again for all your help. It made my day a LOT easier. =)

Top
#19872 - 08/15/06 01:10 PM Re: Need to loop through every 8 lines starting at line 55 for a packing slip.
Anonymous
Unregistered


The object would be defined a little diferently.

May I suggest that you open an issue with our support department? We will in a better position to help you if we can access your data file and document. Simply click on the "Report an issue via the web" button at the top of this page.

Thanks

Top


Moderator:  cosimo, OL Newsgroup Support