red1.org Forum Index red1.org
Nihili est - in vita priore ego imperator romanus fui
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Search Requisiton, InfoRequisition ?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Ask RED1 personally
View previous topic :: View next topic  
Author Message
aalliana



Joined: 21 Apr 2005
Posts: 14

PostPosted: Thu Jun 23, 2005 3:20 am    Post subject: Search Requisiton, InfoRequisition ? Reply with quote

Hi:

I'd like to pass a requisition id as a parameter to a report. I created a procedure and the paramenters.

I'd like my requisiton parameter to have reference: seach, but I get an error: No Info Columns.

I've looking at the codes and I found InfoOrder, InfoInfoce, etc. Should I make my own class InfoRequisition ?

What if I want to search for Requisition Lines instead? Should I make another InfoMRequisitionLine ??

TIA

aa
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Thu Jun 23, 2005 7:18 am    Post subject: Reply with quote

Maybe u can create your Report Process in 2 stages.

First do it without a procedure, just call a flat Print Format that uses the same table. If there is no such Print Format, create a dummy one with minimal fields.

This is to make a Proof of Concept that the field u are passing is correct.

Once that is true, then u replace your Print Format with the Procedure.

The error u got may be saying that u re passing a column that does not exist or spelt wrongly. Ensure the new field has undergone GenerateModel.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
aalliana



Joined: 21 Apr 2005
Posts: 14

PostPosted: Thu Jun 23, 2005 8:38 pm    Post subject: Thanks! Reply with quote

Thanks! I'm going to explain myself a little further, I hope the post is not too long.

>Maybe u can create your Report Process in 2 stages.

That is exactly what I did. I first created my process and report just passing the parameter I need (m_requisitionline_id) as a integer. The procedure works almost as I want it to. Now I'd like to see if I can provide the report the appropiate parameters.

My first problem is that I can't find a proper way to select the requisition line in the procedure parameter window. If i set it to reference "table dir" the list is too long, reference "search" does not work. So I added the requisition_id as a parameter and set it to reference "search" and restricted the requisitionline_id to the lines of the selected requisition (tabledir).

I'd like my m_requisiton_id parameter to have reference: seach, but I get an error: No Info Columns. If I set reference to tabledir it works, but the list is too long. Should I make my own class InfoRequisition ? Should I make my own class InfoRequisitionLine ?

Can I use the InfoGeneral class modifying something?

Thanks a lot! and sory for the long post

aa
Back to top
View user's profile Send private message
aalliana



Joined: 21 Apr 2005
Posts: 14

PostPosted: Mon Jun 27, 2005 10:24 pm    Post subject: InfoRequisition and InfoRequisitionLine. Reply with quote

I solved the problem creating both, InfoRequisition and InfoRequisitonLine. Both work fairly well, the only problem is that I couldn't get zoom to work in InfoRequisition.

How can I share them? Should I paste them in a post?

aa
Back to top
View user's profile Send private message
red1
Site Admin


Joined: 06 Jul 2004
Posts: 1756
Location: Kuala Lumpur, Malaysia

PostPosted: Tue Jun 28, 2005 7:32 am    Post subject: Reply with quote

Yes, posting your codes here is the way to get more ppl to find out and share tots and experiences.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
aalliana



Joined: 21 Apr 2005
Posts: 14

PostPosted: Fri Jul 01, 2005 9:33 pm    Post subject: Inforequisition and InfoRequisitionLine Reply with quote

I posted the classes in the sourceforge web site, under tracker - contributors

I had to do 3 posts because I couldn't find a way to attach the 3 classes in a single post. Here are the links:

http://sourceforge.net/tracker/index.php?func=detail&aid=1228474&group_id=29057&atid=573828

http://sourceforge.net/tracker/index.php?func=detail&aid=1228472&group_id=29057&atid=573828

http://sourceforge.net/tracker/index.php?func=detail&aid=1228463&group_id=29057&atid=573828

I couldn't make zoom work in InfoRequisiton. Perhaps somebody could fix this.

aa
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    red1.org Forum Index -> Ask RED1 personally All times are GMT + 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group