|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Client ID |
ICL
|
Post subject: Client ID |
Post rating: 0
|
Posted: Fri 10 Aug, 2012, 15:08
|
|
User rating: 0
Joined: Thu 29 Mar, 2012, 15:52 Posts: 10
|
Hello,
I know of the get.AccountId() command but is there a command to retrieve the client ID number.
Thank
ICL
|
|
|
|
 |
jlongo
|
Post subject: Re: Client ID |
Post rating: 0
|
Posted: Fri 10 Aug, 2012, 15:22
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi ICL:
Not sure but i think you can get this with IAccount.getClientIds() (at least for PAMM accounts).
Trade well and prospers in your way.
JL
|
|
|
|
 |
API Support
|
Post subject: Re: Client ID |
Post rating: 0
|
Posted: Fri 10 Aug, 2012, 16:10
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
ICL
|
Post subject: Re: Client ID |
Post rating: 0
|
Posted: Sat 11 Aug, 2012, 09:45
|
|
User rating: 0
Joined: Thu 29 Mar, 2012, 15:52 Posts: 10
|
Thanks
what I'm trying to do is lock an indicator to a specific ID. I have the following which works
context.getConsole().getOut().println(context.getAccount().getAccountId()); login = context.getAccount().getAccountId();
if ( "12345".equalsIgnoreCase(login)) {valid = 1;} else {valid = 0;}
however, when I change the .getAccoutnId() to getClientIds() I get an error.
Your help is appreciated.
Thanks ICL
|
|
|
|
 |
jlongo
|
Post subject: Re: Client ID |
Post rating: 0
|
Posted: Sat 11 Aug, 2012, 13:31
|
|
User rating: 94
Joined: Mon 06 Feb, 2012, 12:22 Posts: 357 Location: Portugal, Castelo Branco
|
Hi ICL:
You get a error because the returning values of each methods are diferent!
The first one returns a String object and the second returns a Set<String>. You need to change your code taking in consideration this.
I hope this helps.
Trade well and prospers in your way
JL
|
|
|
|
 |
API Support
|
Post subject: Re: Client ID |
Post rating: 0
|
Posted: Mon 13 Aug, 2012, 08:11
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|