Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BOXI - Modifying Infoview aspx pages

Status
Not open for further replies.

Bobbber

Programmer
Sep 6, 2002
83
TR
Hi,

I can modify the 'inline' code within an InfoView and see the changes reflected in Internet Explorer. However, if I change the code in the 'codebehind' file (a *.aspx.cs file) - the changes are not reflected.

I understand this is because the .cs file is compiled into the 'project'????

Can someone give me some pointers of how I can start modifying these files and seeing the changes reflected in the Infoview through Internet Explorer!?

thanks!

Bob

 
Bob,

Do you have a solution to this. I got to customize the apsx pages too.

If you have the solution, can you explain how are you doing it.

Thanks,

V
 
Yes I do. I spent ages working on this. I deserve a medal! :¬)

Right then. Modifying the .aspx pages is easy. In notepad. Changes are reflected in the InfoView pages. Also, alot of the style of the pages is stored in the Infoview/default.css file. Changes to this file are reflected in the InfoView pages.

The problem I had arises when trying to change code stored in the corresponding .aspx.cs files.

Changes to these files are NOT reflected in the InfoView pages. This is because these code files are compiled into InfoView/bin/webdesktop.dll

This .dll file is referenced, not the .aspx.cs file.

OK... here's how to modify the .aspx.cs pages (you must have Visual Studio.NET) :

1. Create a new folder in the root of c: I called mine MAKEROOT
2. Copy the InfoView folder (usually in C:\Program Files\Business Objects\BusinessObjects Enterprise 11\Web Content\Enterprise11) into the MAKEROOT folder.
3. Now make your modifications to the .aspx.cs files in the MAKEROOT/InfoView folder.
4. Once happy with the changes. Copy webdesktop.mak from MAKEROOT/InfoView into MAKEROOT.
5. Now copy the program NMAKE.EXE from "C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Bin" into MAKEROOT.
6. Click Start->Run->Type "cmd"->Click OK
7. Microsoft DOS whatsit comes up.
8. cd c:\MAKEROOT
9. (Modify the path if need be, depending on which version of Framework you have) Type -> "PATH C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322;%PATH%"
10. "nmake /A /f webdesktop.mak"
11. At this point it may complain that it is missing some .dll files required by the compilation. Locate these, copy them to the MAKEROOT folder and go back to 9.
12. A correct build is when it says '2 files copied' at the end.
13. Goto MAKEROOT/InfoView/bin
14. Locate your NEW webdesktop.dll
15. Copy it over the old one in the original Infoview/bin location (usually in C:\Program Files\Business Objects\BusinessObjects Enterprise 11\Web Content\Enterprise11\InfoView\bin\).
16. That's it... DONE!

Easy eh?

Don't ask me how I sorted that lot out!!!!

Got a job going!!!?

Bob

 
Thanks Bob.

You definately deserve a medal.

I will give these steps a try and let you know how it goes.

V
 
Hi Bob,

I was trying to follow the instructions you provided but I am getting the following error:

-----------------------------------------------------------
if exist \client\dotnet\WebDesktop\Debug rmdir /q /s \client\dotnet\WebDesktop\Debug
if exist \client\dotnet\WebDesktop\bin rmdir /q /s \client\dotnet\WebDesktop\bin
NMAKE: fatal error U1073: don't know how to make '\client\dotnet\WebDesktop\*.cs
Stop.
-----------------------------------------------------------

I could not find the make.exe in the path you mentioned. I did find make.exe in following paths and copied as you suggested:
\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin
\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\bin

Can you pleease explain the step # 9 again.

Thanks,

V
 
Was still celebrating my success at the time!!!! LOL!

So might have left something out. Open the copy of MAKEROOT\WebDesktop.mak in notepad and change the appdir to read :

APP_DIR=infoview

Sorry about that!!!!!

 
Thanks again, Will try it out in the evening and let you know how it goes.
 
Hi Techie...

Did this work for you in the end?

Bob

 
Bob,

I am going to try this during weekend at home. Will let you know the outcome during weekend.

Thanks for follow up.

V
 
Hi Bob,

I was able to reach at point where it was asking for missing dll's. I did copy all of them to root folder makeroot but getting the following error:

----------------------------------------------
infoview\AssemblyInfo.cs(67,12): error CS0579: Duplicate 'AssemblyKeyName'
attribute
infoview\AssemblyInfo.cs(66,12): error CS0579: Duplicate 'AssemblyKeyFile'
attribute
infoview\AssemblyInfo.cs(65,12): error CS0579: Duplicate 'AssemblyDelaySign'
attribute
infoview\AssemblyInfo.cs(34,12): error CS0579: Duplicate 'AssemblyVersion'
attribute
infoview\AssemblyInfo.cs(21,12): error CS0579: Duplicate 'AssemblyCulture'
attribute
infoview\AssemblyInfo.cs(20,12): error CS0579: Duplicate 'AssemblyTrademark'
attribute
infoview\AssemblyInfo.cs(19,12): error CS0579: Duplicate 'AssemblyCopyright'
attribute
infoview\AssemblyInfo.cs(18,12): error CS0579: Duplicate 'AssemblyProduct'
attribute
infoview\AssemblyInfo.cs(17,12): error CS0579: Duplicate 'AssemblyCompany'
attribute
infoview\AssemblyInfo.cs(16,12): error CS0579: Duplicate 'AssemblyConfiguration'
attribute
infoview\AssemblyInfo.cs(15,12): error CS0579: Duplicate 'AssemblyDescription'
attribute
infoview\AssemblyInfo.cs(14,12): error CS0579: Duplicate 'AssemblyTitle'
attribute
infoview\Report\report_scheduleBody.aspx.cs(652,7): error CS0012: The type
'CrystalDecisions.Reporting.WebControls.DatabaseLogOnList' is defined in
an assembly that is not referenced. You must add a reference to assembly
'CrystalDecisions.Web'.
CrystalDecisions.Enterprise.Web.dll: (Location of symbol related to previous
error)
infoview\Report\report_scheduleBody.aspx.cs(652,25): error CS0117:
'CrystalDecisions.Reporting.WebControls.DatabaseLogOnList' does not
contain a definition for 'LogOnInfos'
NMAKE : fatal error U1077: 'csc.exe' : return code '0x1'
Stop.
---------------------------------------------------------

Thanks again for your help and sharing this stuff.

V
 
Blimey. You're right!

So many steps I got confused (again!).

You'll need to rename assemblyinfo.cs as assemblyinfo.csx

Try it again!

It WILL work in the end!

Bob

 
you mean search for it and just rename the file whereever it is or move it over to makeroot.
 
Leave the file where it is, and just rename it. The webdesktop.mak process takes all the *.cs files in the subfolders and compilies them into the webdesktop.dll file. By renaming the suffix on the assemblyinfo.cs file - it excludes it from the build.

Bob

 
Hey Bob,

I think I am getting closer. Getting the follwong error:

---------------
infoview\Debug\WebDesktop.dll" /recurse:infoview\*.cs
infoview\Report\report_scheduleBody.aspx.cs(652,7): error CS0012: The type
'CrystalDecisions.Reporting.WebControls.DatabaseLogOnList' is defined in
an assembly that is not referenced. You must add a reference to assembly
'CrystalDecisions.Web'.
CrystalDecisions.Enterprise.Web.dll: (Location of symbol related to previous
error)
infoview\Report\report_scheduleBody.aspx.cs(652,25): error CS0117:
'CrystalDecisions.Reporting.WebControls.DatabaseLogOnList' does not
contain a definition for 'LogOnInfos'
NMAKE : fatal error U1077: 'csc.exe' : return code '0x1'
Stop.
-----------------

Thanks,

V
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top