Reports , enquiry
- emehaj
- Topic Author
- Visitor
-
13 years 7 months ago #10940
by emehaj
Reports , enquiry was created by emehaj
Dears
I want to create an enquiry that per each application LD,TT,FT,LA, to count this application by inputter. But the inputter has always a portnumber and a special caracter and the name who inputed the record example 456_emehaj, 34567_emehaj, 1_emehaj. As the number of port changed sometimes i one character, 2 or 3 i am not find the way how i can define only the name so only emehaj . So if i can achive to take only emehaj that i can sort the enquiry by user. Can nobody help on this , how i can fix it in the enquiry.
Best
I want to create an enquiry that per each application LD,TT,FT,LA, to count this application by inputter. But the inputter has always a portnumber and a special caracter and the name who inputed the record example 456_emehaj, 34567_emehaj, 1_emehaj. As the number of port changed sometimes i one character, 2 or 3 i am not find the way how i can define only the name so only emehaj . So if i can achive to take only emehaj that i can sort the enquiry by user. Can nobody help on this , how i can fix it in the enquiry.
Best
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
Less
More
- Posts: 2860
- Thank you received: 650
13 years 7 months ago #10947
by jpb
Replied by jpb on topic Re: Reports , enquiry
Use CONVERSION like : FIELD _,2,1 for INPUTTER.
If you want to use FIXED.SORT in your enquiry you have to define a USR.FIELD in the standard selection of LF, TT, FT etc. that does the same, e.g.
USER.FIELD.NAME - ORDER.INPUTTER
USER.TYPE - I
USER.FIELD.NO - INPUTTER<1,1>
If you want to use FIXED.SORT in your enquiry you have to define a USR.FIELD in the standard selection of LF, TT, FT etc. that does the same, e.g.
USER.FIELD.NAME - ORDER.INPUTTER
USER.TYPE - I
USER.FIELD.NO - INPUTTER<1,1>
Please Log in or Create an account to join the conversation.
- emehaj
- Topic Author
- Visitor
-
13 years 7 months ago #10962
by emehaj
Replied by emehaj on topic Re: Reports , enquiry
Thanks a lot,
IT really work with FIELD.... I was trying with E"_",* but this not worked. So just to understand how it calculate. what it means FIELD so begin after the _ character take ?
IT really work with FIELD.... I was trying with E"_",* but this not worked. So just to understand how it calculate. what it means FIELD so begin after the _ character take ?
Please Log in or Create an account to join the conversation.
- jpb
-
- Offline
- Moderator
-
- retired . . . ¯\_(ツ)_/¯
Less
More
- Posts: 2860
- Thank you received: 650
13 years 7 months ago #10968
by jpb
Replied by jpb on topic Re: Reports , enquiry
FIELD conversion works like FIELD function just without the string and quotes :-)
see www.jbase.com/r5/knowledgebase/manuals/3...s/man/jbc2_FIELD.htm
see www.jbase.com/r5/knowledgebase/manuals/3...s/man/jbc2_FIELD.htm
Please Log in or Create an account to join the conversation.
- emehaj
- Topic Author
- Visitor
-
13 years 7 months ago #10975
by emehaj
Replied by emehaj on topic Re: Reports , enquiry
And please if you can help , how to have just only a value like sum , for example we have more the one charges but how i can calculate both in one column like a total?
Please Log in or Create an account to join the conversation.
- Gigiipse
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 1
13 years 7 months ago - 13 years 7 months ago #11001
by Gigiipse
Replied by Gigiipse on topic Re: Reports , enquiry
I supose you mean you have a transactions with 2 charges on it. Use the SUM function on the field that holds the amount of the charge:
THE.CHARGE = SUM(CHANGE(R.REC<FT/LD/TT.CHARGE.FIELD>,@VM,@FM))
Make sure they are all in the same currency and they actually have amounts, not EUR10.00 values.
Also in help it says enq suports:
TOTAL XXX Total enquiry field XXX.
Donno how to use this but it might be what you need.
THE.CHARGE = SUM(CHANGE(R.REC<FT/LD/TT.CHARGE.FIELD>,@VM,@FM))
Make sure they are all in the same currency and they actually have amounts, not EUR10.00 values.
Also in help it says enq suports:
TOTAL XXX Total enquiry field XXX.
Donno how to use this but it might be what you need.
Last edit: 13 years 7 months ago by Gigiipse.
Please Log in or Create an account to join the conversation.
- emehaj
- Topic Author
- Visitor
-
13 years 7 months ago #11003
by emehaj
Replied by emehaj on topic Re: Reports , enquiry
hi
Yes i want for LD. but SUM FUNCTION have to use in rutine or Enquiry?
Yes i want for LD. but SUM FUNCTION have to use in rutine or Enquiry?
Please Log in or Create an account to join the conversation.
- Gigiipse
- Offline
- Senior Member
-
Less
More
- Posts: 40
- Thank you received: 1
13 years 7 months ago #11004
by Gigiipse
Replied by Gigiipse on topic Re: Reports , enquiry
SUM can be used in a routine, but you should try to play a little with TOTAL option directly on the enquiry.
Please Log in or Create an account to join the conversation.
Time to create page: 0.033 seconds