Jump to content
Software FX Community

String size and URL's


User (Legacy)

Recommended Posts

Hey all,

I'm attempting to construct URL's for drill back into our product. What

we're finding is that the 255 character limit on string lengths is killing

us. Because we're a J2EE based, servlet-style application, we're finding

that it takes no less than 80 characters to create just the pointer back to

our application, without any in-context information:

http://lsnserver.compny.com:9191/lsn231/servlet/com.cmpny.lsn.uiengine.AppLi

nk?

Further, to identify the specific set of data, and source, there are

mandatory parameters this servlet needs - all before the in-context stuff

can be applied:

http://lsnserver.compny.com:9191/lsn231/servlet/com.cmpny.lsn.uiengine.AppLi

nk?type=cell&is=1006&objId=704&uid=lawusr&tableId=9&

The preceeding is about 130 bytes. That leaves us with about 125 characters

to represent the in-context part of the URL. And, since all strings have to

be URLEncoded, it's about impossible to achieve what we need to do.

Any hope of expanding this to a reasonable limit in the near-term? I believe

that MS allows for up to a 2k URL length. Seems kinda strange to limit it to

256 characters.

Thanks for your help,

Marc

Link to comment
Share on other sites

Hi, we are checking how to increase the URL size you need without affecting

other areas (we share a function used to build ToolTips, URLs, etc.), how

exactly are you generating your URLs ?

Are you using URLParamMask ?

Are you assigning URLs on a per series or per point basis ?

--

Regards,

JC

Software FX Support

"Marc Batchelor" <PleaseReplyToGroup@nowhere.com> wrote in message

news:F2L7a0J#CHA.1324@webserver1.softwarefx.com...

> Hey all,

>

> I'm attempting to construct URL's for drill back into our product. What

> we're finding is that the 255 character limit on string lengths is killing

> us. Because we're a J2EE based, servlet-style application, we're finding

> that it takes no less than 80 characters to create just the pointer back

to

> our application, without any in-context information:

>

>

http://lsnserver.compny.com:9191/lsn231/servlet/com.cmpny.lsn.uiengine.AppLi

> nk?

>

> Further, to identify the specific set of data, and source, there are

> mandatory parameters this servlet needs - all before the in-context stuff

> can be applied:

>

>

http://lsnserver.compny.com:9191/lsn231/servlet/com.cmpny.lsn.uiengine.AppLi

> nk?type=cell&is=1006&objId=704&uid=lawusr&tableId=9&

>

> The preceeding is about 130 bytes. That leaves us with about 125

characters

> to represent the in-context part of the URL. And, since all strings have

to

> be URLEncoded, it's about impossible to achieve what we need to do.

>

> Any hope of expanding this to a reasonable limit in the near-term? I

believe

> that MS allows for up to a 2k URL length. Seems kinda strange to limit it

to

> 256 characters.

>

> Thanks for your help,

>

> Marc

>

>

>

Link to comment
Share on other sites

> Hi, we are checking how to increase the URL size you need without

affecting

> other areas (we share a function used to build ToolTips, URLs, etc.), how

> exactly are you generating your URLs ?

>

> Are you using URLParamMask ?

> Are you assigning URLs on a per series or per point basis ?

Thanks for the reply. As you may have noticed from a subsequent post (on

3/31 called XML Properties and URL()), my URLOptions is 24. I'm trying to

use a different URL for each series. I am using the URLParamMask to fill in

something like:

measures=%s&%s=%v

This provides me the in-context capabilities.

Because of the URL string limit, I am currently experimenting with the

following until I can get some kind of fix from you guys...:

***********************

***** Kludge Alert *****

***********************

1) Set the URL's to look something like:

javascript:doDrillDownChart0(0, '

Note that "Chart0" equates to the name of the imagemap (as specified by in

the GetHtmlTag call) so that drill links work when more than one chart is on

a page. Also, the "0," in the above call is actually the series number.

2) I then have to set the paramMask to close the single quote and function

parenthesis as follows:

paramMask = "measures=%s&%s=%v')"

3) So, the final "url" in the image map definition from ChartFX ends up

looking like this:

javascript:doDrillDownChart0(0, '?measures=Sales&Sales=15204.23')

4) Then, I have to generate in our HTML page a javascript function that

looks like this (although I haven't done the URL invoker yet):

<script>

function doDrillDownChart0(urlID, stuff) {

drillURLs = new Array();

var i = -1;

var contentWindow = 'LSNContent';

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Some+Bank%2C+East&Source=Website&type=cell&is=1006&objid=737&use

rid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Some+Bank%2C+East&Source=Referral&type=cell&is=1006&objid=737&us

erid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=APSRA+Services&Source=Cold+Call&type=cell&is=1006&objid=737&user

id=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Markie+Technology+Associates&Source=Cold+Call&type=cell&is=1006&

objid=737&userid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Markie+Technology+Associates&Source=Referral&type=cell&is=1006&o

bjid=737&userid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Special+Ledger&Source=Cold+Call&type=cell&is=1006&objid=737&user

id=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Special+Ledger&Source=Referral&type=cell&is=1006&objid=737&useri

d=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Special+Ledger&Source=Trade+Show&type=cell&is=1006&objid=737&use

rid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Great+Solutions&Source=Advertisement&type=cell&is=1006&objid=737

&userid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Great+Solutions&Source=Referral&type=cell&is=1006&objid=737&user

id=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Tumber+%26+Smyth+Associates&Source=Website&type=cell&is=1006&obj

id=737&userid=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Goatt+Systems&Source=Trade+Show&type=cell&is=1006&objid=737&user

id=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Andover%27s&Source=Website&type=cell&is=1006&objid=737&userid=ls

nuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=California+Fax&Source=Cold+Call&type=cell&is=1006&objid=737&user

id=lsnuser&tname=range-8-1049174569932";

drillURLs[++i] =

"http://someserver:9191/lsndebug/servlet/com.company.lsn.uiengine.AppLink?&C

ompany+Name=Hydro+Augment+Corp.&Source=Referral&type=cell&is=1006&objid=737&

userid=lsnuser&tname=range-8-1049174569932";

alert(drillURLs[urlID] + '&' + stuff.substr(1));

}

</script>

Hopefully, you can see that this is a HUGE pain point.

Marc Batchelor

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...