Page 1 of 1

Lock Indicator Image Session Based??

PostPosted: 04 Jun 2014 18:41
by Aggie85
Howdy All!

First, I just launched my new web reservations module based on CGDevTools and my customers (and their customers) definitely PREFER the UI over the all (TMS)!

Some of my customers are actually several companies within one shell.

Currently my web module uses a "fixed" image url in the LockIndicator in the ServerController object.

My web sessions are started via a unique customer # (url parameter).

Now the question: several of my customers want to specify the "image url" that the lock indicator uses but it would be session based; that is, the image URL to be used would be determined based on the customer # used in the session.

So what is the easiest way to do this? I was thinking about adding another item to the JQLockIndicator items property, but then how could I tell all my controls my many pages to use the "item" for the selected session?

Thanks in advance!

Aggie85

Re: Lock Indicator Image Session Based??

PostPosted: 04 Jun 2014 19:20
by Jorge Sousa
Hello

Thanks for the feedback.

I think that your problem is having the LockIndicator in ServerController and all sessions are sharing the same LockIndicator, isn't that right?

If you have it in the IW Forms there will be no such problem

Re: Lock Indicator Image Session Based??

PostPosted: 04 Jun 2014 19:28
by Jorge Sousa
Hi

At this time of the day, we seem not want to read all

Currently my web module uses a "fixed" image url in the LockIndicator in the ServerController object.


You're using in the ServerController!

The ServerController and anything on it, can only be writable in the mainthread - ServerController.OnCreate / ServerController.OnConfig, for instance.

After, you've to protect the writes with critical sections or any other method.

Re: Lock Indicator Image Session Based??

PostPosted: 04 Jun 2014 19:52
by Aggie85
cgdevtools_support wrote:Hello

Thanks for the feedback.

I think that your problem is having the LockIndicator in ServerController and all sessions are sharing the same LockIndicator, isn't that right?

If you have it in the IW Forms there will be no such problem


Thanks!

I guess I was under the impression from reading (or possibly remembering WRONG) that putting the LockIndicator on the ServerController was best for speed.

I guess I can put a lock indicator on each page and handle it that way - is that what you are recommending (and deleting the one on the ServerController)?

I appreciate the assistance! My brain has been fried from this last week!

Thanks again for a great product (and support to match)!

Aggie85

Re: Lock Indicator Image Session Based??

PostPosted: 04 Jun 2014 22:10
by Jorge Sousa
Hi

About

I guess I was under the impression from reading (or possibly remembering WRONG) that putting the LockIndicator on the ServerController was best for speed.


No it's not best for speed.

I guess I can put a lock indicator on each page and handle it that way - is that what you are recommending (and deleting the one on the ServerController)?


Yes thats the only solution for what you need.

Thanks again for a great product (and support to match)!


You're welcome

Re: Lock Indicator Image Session Based??

PostPosted: 05 Jun 2014 15:14
by Aggie85
Turns out it was REAL EASY to do!!

Thanks,

Aggie85