Page 1 of 1
SplitString Function Not working
Posted: Thu Jul 03, 2014 8:00 pm
by nazaninhp
Hi,
I recently tried to create link in one of my column in report however i need to use SplitString function to direct me to correct page.
Here is my sample i used :
../Projects/ProjectDetails.aspx?{SplitString(ReportData.Projects_Name_Hyperlink,0)}
when i save the report and back to original page and try to reopen it in gave me Error and can not open it.
I already created the report with this function long time ago and work properly.
but for new report it does not work.
Can you please advise?
Thank you
Re: SplitString Function Not working
Posted: Fri Jul 04, 2014 11:40 am
by Ivan
Hello,
Can you please send us a sample report template with data, which reproduces the issue?
Also please describe step-by-step how do you reproduce the issue.
Thank you.
Re: SplitString Function Not working
Posted: Fri Jul 04, 2014 12:45 pm
by nazaninhp
Hi,
I have a Web application which has a section Report . When I'm going to report section and click on create report it directed to stimulsoft and it is connected to my data source which is huge data source.
then i tried to use splitstring for my Link in order to direct me to the correct page in my web I'm getting that error .
you can reproduce the issue like that :
1- create one of your column data as link
2-I group my report based on this data
3-I put it in my group header
4-then try to link it to the page in my web (you can see it in the picture how i linked)
then i save the report without issue . and it direct me to my original report page in my website .when i click on report i created link that in my web page it can not open it and it gave me report Failed error.
Re: SplitString Function Not working
Posted: Fri Jul 04, 2014 12:47 pm
by nazaninhp
How can i attach the file to this page ?
Re: SplitString Function Not working
Posted: Fri Jul 04, 2014 4:21 pm
by Andrew
Hello,
When you write a reply, please choose the "Full editor" of the reply window and below the input window go to the tab "Upload attachment".
In case you cannot find this, please upload the file on Dropbox, Google or your FTP.
Can you upload the file now?
Thank you.
Re: SplitString Function Not working
Posted: Fri Jul 04, 2014 6:10 pm
by nazaninhp
Hi,
There is two report files in this attachment.
"Project Compliance" work properly with SpilitString and it has been created long time ago.
"Equipment Cellmax" is created recently and it does not working with SpiliString function.
I attached the text file as well "SpiliString" which include the error that log file show me.
Thank you
Re: SplitString Function Not working
Posted: Mon Jul 07, 2014 1:16 pm
by HighAley
Hello.
The SplitString function is described in the old report. You should add the same code in the new one.
Code: Select all
public string SplitString(string rsString, int riItem, char rsDelimiter=';') {
return rsString.Split(rsDelimiter)[riItem];
}
You could find this code at the Code tab in the Designer.
Thank you.