[jpos-users] How do we access data in the sub-fields of field 127

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

[jpos-users] How do we access data in the sub-fields of field 127

by mwycliffe@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hellos,

Hoping you are fine.

Please advise me on how to access data in nested field 127.
e.g. if I want to access data in sub field 24 of field 127, how do I
achieve that?

Can I do something like String S = isomsg[127].isomsg[24];

thanks®ards,
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by Mark Salter-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


mwycliffe@... wrote:

> Please advise me on how to access data in nested field 127.
> e.g. if I want to access data in sub field 24 of field 127, how do I
> achieve that?

Do you have the programmers guide mwycliffe?

>
> Can I do something like String S = isomsg[127].isomsg[24];

Perhaps you can:-

   String f = isomsg.getString("127.24");

and watch for nulls

--
Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by chhil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Mark has been very helpful to provide you the information but
searching the list with "how can i get the inner subfields of 127"
should get you this same information :-)

-chhil


On Wed, Sep 30, 2009 at 2:41 PM, Mark Salter <marksalter@...> wrote:

>
> mwycliffe@... wrote:
>
>> Please advise me on how to access data in nested field 127.
>> e.g. if I want to access data in sub field 24 of field 127, how do I
>> achieve that?
>
> Do you have the programmers guide mwycliffe?
>
>>
>> Can I do something like String S = isomsg[127].isomsg[24];
>
> Perhaps you can:-
>
>   String f = isomsg.getString("127.24");
>
> and watch for nulls
>
> --
> Mark
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by Victor Salaman :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Chhil, Hmm.... Why search when you can have some poor soul spoon-feed you the information? :)

Now seriously, mwycliffe, you should
    1) Look at the jPOS source code, after all that's what it's for. 
    2) Buy the programmer's guide if you have not done so already.
    3) Search the group before asking a question.
    4) Make sure you have a spec which details the format for packaging and communications for the system you're connecting to, then you can use/adapt/create a packager/channel combo which is compatible with that system.
    5) Do lots of reading.

I hope this helps, and have fun,

/V

On Wed, Sep 30, 2009 at 6:28 AM, chhil <chillum@...> wrote:

Mark has been very helpful to provide you the information but
searching the list with "how can i get the inner subfields of 127"
should get you this same information :-)

-chhil


On Wed, Sep 30, 2009 at 2:41 PM, Mark Salter <marksalter@...> wrote:
>
> mwycliffe@... wrote:
>
>> Please advise me on how to access data in nested field 127.
>> e.g. if I want to access data in sub field 24 of field 127, how do I
>> achieve that?
>
> Do you have the programmers guide mwycliffe?
>
>>
>> Can I do something like String S = isomsg[127].isomsg[24];
>
> Perhaps you can:-
>
>   String f = isomsg.getString("127.24");
>
> and watch for nulls
>
> --
> Mark
>
> >
>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by mwycliffe@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks People,

Well I finally managed to get a work around, hope it's not the longer
way.

Object f127obj = null;
f127obj = isomsg.getValue(127);
ISOMsg m127 = (ISOMsg) f127obj;

Mark,
I tried String f = isomsg.getString("127.24");
but got some errors;
: getString(int) in org.jpos.iso.ISOMsg cannot be applied to
(java.lang.String)
            String f = isomsg.getString("127.24");
                             ^
1 error

thanks®ards,

On Sep 30, 12:11 pm, Mark Salter <marksal...@...> wrote:

> mwycli...@... wrote:
> > Please advise me on how to access data in nested field 127.
> > e.g. if I want to access data in sub field 24 of field 127, how do I
> > achieve that?
>
> Do you have the programmers guide mwycliffe?
>
>
>
> > Can I do something like String S = isomsg[127].isomsg[24];
>
> Perhaps you can:-
>
>    String f = isomsg.getString("127.24");
>
> and watch for nulls
>
> --
> Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by Didik Rawandi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

you can redownload jpos library, or you can update svn :)

On Thu, Oct 1, 2009 at 11:19 PM, mwycliffe@... <mwycliffe@...> wrote:

Thanks People,

Well I finally managed to get a work around, hope it's not the longer
way.

Object f127obj = null;
f127obj = isomsg.getValue(127);
ISOMsg m127 = (ISOMsg) f127obj;

Mark,
I tried String f = isomsg.getString("127.24");
but got some errors;
: getString(int) in org.jpos.iso.ISOMsg cannot be applied to
(java.lang.String)
           String f = isomsg.getString("127.24");
                            ^
1 error

thanks&regards,

On Sep 30, 12:11 pm, Mark Salter <marksal...@...> wrote:
> mwycli...@... wrote:
> > Please advise me on how to access data in nested field 127.
> > e.g. if I want to access data in sub field 24 of field 127, how do I
> > achieve that?
>
> Do you have the programmers guide mwycliffe?
>
>
>
> > Can I do something like String S = isomsg[127].isomsg[24];
>
> Perhaps you can:-
>
>    String f = isomsg.getString("127.24");
>
> and watch for nulls
>
> --
> Mark




--
Best Regards,

Didik Rawandi
354

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by chhil :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


http://osdir.com/ml/java.jpos.devel/2008-07/msg00023.html

On Thu, Oct 1, 2009 at 9:49 PM, mwycliffe@... <mwycliffe@...> wrote:

>
> Thanks People,
>
> Well I finally managed to get a work around, hope it's not the longer
> way.
>
> Object f127obj = null;
> f127obj = isomsg.getValue(127);
> ISOMsg m127 = (ISOMsg) f127obj;
>
> Mark,
> I tried String f = isomsg.getString("127.24");
> but got some errors;
> : getString(int) in org.jpos.iso.ISOMsg cannot be applied to
> (java.lang.String)
>            String f = isomsg.getString("127.24");
>                             ^
> 1 error
>
> thanks®ards,
>
> On Sep 30, 12:11 pm, Mark Salter <marksal...@...> wrote:
>> mwycli...@... wrote:
>> > Please advise me on how to access data in nested field 127.
>> > e.g. if I want to access data in sub field 24 of field 127, how do I
>> > achieve that?
>>
>> Do you have the programmers guide mwycliffe?
>>
>>
>>
>> > Can I do something like String S = isomsg[127].isomsg[24];
>>
>> Perhaps you can:-
>>
>>    String f = isomsg.getString("127.24");
>>
>> and watch for nulls
>>
>> --
>> Mark
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---


[jpos-users] Re: How do we access data in the sub-fields of field 127

by mwycliffe@gmail.com :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks Chhil,

for the Link http://osdir.com/ml/java.jpos.devel/2008-07/msg00023.html

It actually gives a shorter method for accessing inner subfields of
127.

regards,

On Oct 1, 7:57 pm, chhil <chil...@...> wrote:

> http://osdir.com/ml/java.jpos.devel/2008-07/msg00023.html
>
>
>
> On Thu, Oct 1, 2009 at 9:49 PM, mwycli...@... <mwycli...@...> wrote:
>
> > Thanks People,
>
> > Well I finally managed to get a work around, hope it's not the longer
> > way.
>
> > Object f127obj = null;
> > f127obj = isomsg.getValue(127);
> > ISOMsg m127 = (ISOMsg) f127obj;
>
> > Mark,
> > I tried String f = isomsg.getString("127.24");
> > but got some errors;
> > : getString(int) in org.jpos.iso.ISOMsg cannot be applied to
> > (java.lang.String)
> >            String f = isomsg.getString("127.24");
> >                             ^
> > 1 error
>
> > thanks®ards,
>
> > On Sep 30, 12:11 pm, Mark Salter <marksal...@...> wrote:
> >> mwycli...@... wrote:
> >> > Please advise me on how to access data in nested field 127.
> >> > e.g. if I want to access data in sub field 24 of field 127, how do I
> >> > achieve that?
>
> >> Do you have the programmers guide mwycliffe?
>
> >> > Can I do something like String S = isomsg[127].isomsg[24];
>
> >> Perhaps you can:-
>
> >>    String f = isomsg.getString("127.24");
>
> >> and watch for nulls
>
> >> --
> >> Mark- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-users@...
To unsubscribe, send email to jpos-users+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---