Change Body-tag before load of page

Hi,
Is there a possibility in PDK.Net to change the body-tag contents of the generated page before pageload.
I would like to add a Javascript for the body-onload event in some cases (depending on the result of an if-statement).
Regards,
Igor

Hi Igor,
Since the body tab is generated, there is no possible way to add events to it.
Can u please describe your scenario as there might be another way to solve this issue.
Thanks, Reshef

Similar Messages

  • Can I edit the rpt file & change the datasource before loading the report?

    We are an ISV and our application has a lot of reports.  Our reports use a SQL Server database as the data source and each SQL Server at our customer sites has a different name.
    In our testing we have determined that ReportDocument.Load tries to connect to the SQL Server that is saved in the RPT.  If it can't fine the SQL Server saved in the RPT the load take about 60 seconds while it is waiting for the SQL Server Connection to time out.
    We are using the Visual Studio 2008 version of Crystal Reports.  This did not seem to be a problem with VB6/CR8.5.
    We would like to edit the RPT and change the data source to the appropriate SQL Server before we call ReportDocument.Load.
    Is it possible to edit the rpt file and change the data source before loading the report?
    Or is there some way to tell Crystal not to try connecting to the DB
    during the report.load?
    In our case we will NEVER use the data source that is saved in the RPT, we will always change the data source using ApplyLogOnInfo.
    Thanks

    HI Todd,
    You Can Not edit the report document before ReportDocument.Load() because if you dont load the report then you dont have anything to Edit
    But as far as changing the datasource is concerned you can change that at runtime.
    For changing the datasource following code will help you if both databases have a same schema :
    Code for changing the database
    ConnectionInfo crConnectionInfo = new ConnectionInfo();
    crConnectionInfo.ServerName = "SERVER";
    crConnectionInfo.DatabaseName = "DATABASE";
    crConnectionInfo.UserID = "USERID";
    crConnectionInfo.Password = "PASSWORD";
    // Loop through the ReportObjects in a report and find all the subreports
    foreach(ReportObject crReportObject in crReportDocument.ReportDefinition.ReportObjects)
         // Check the kind of the ReportObject, if it is a subreport
         // proceed. If not skip.
         if(crReportObject.Kind == ReportObjectKind.SubreportObject)
              // Get the SubReport in the form of a ReportDocument
              string sSubreportName = ((SubreportObject)crReportObject).SubreportName;
              ReportDocument crSubReportDocument = crReportDocument.OpenSubreport(sSubreportName);
              // Use a loop to go through all the tables in the main report
              foreach(Table crTable in crSubReportDocument.Database.Tables)
    // Get the TableLogOnInfo from the Table and then set the new
    // ConnectionInfo values.
    TableLogOnInfo crLogOnInfo = crTable.LogOnInfo;
    crLogOnInfo.ConnectionInfo = crConnectionInfo;
    // Apply the TableLogOnInfo
    crTable.ApplyLogOnInfo(crLogOnInfo);
    // Set the location of the database. This value will vary from database to
    // database.
    crTable.Location = "DATABASE.OWNER.TABLENAME" or crTable.Locations;
    The sample for doing this is available on support site.
    Thanks,
    Prasad

  • How to call AMImpl method before loading the page(task_flow_config.xml)

    Hi experts,
    I have requirement like,
    I need to call AmImpl method, before rendering the page.(I heard like we can do it in task_flow_config.xml by using method_Invoke operation,But I am not sure about How it is going to work, also i need to know the implementation part,,,help pls )
    (I need to do in Task_Flow.)
    Inside that method I have some logic, where I will setting the BindVariable of my one ViewObject and I need to run the ViewOblect,So that DataShuold be available while page loading.
    I have some different logic after that,,,,
    can anyone suggest me for this??
    thanks
    Santosh

    thanks to Timo n TK,
    I have use case like,
    In the search page I have 2 LOV dropdowns say LOV1 and LOV2. Both list of values are created based on the independent View Objects based on the Query.
    LOV2 VO query is having the Bind Variable, for that Bind variable will be getting the value from the one of the AM method based on the user logged in.
    Also I need to display LOV2 dropdown in the page when user selects LOV1 as a 'SCM', for others it should be in hidden state.
    As per requirement I have to display LOV2 only for LOV1 value as 'SCM'. So I dont want to use valueChangeListner() for this.
    Instead I want populate LOV2 value before page rendering(because in that time i will be having all the parameter to populate ) by executing LOV2 VO Query.
    Once in search page user selects LOV1 as 'SCM', I should display 'LOV2' values in the dropdown.
    If i execute LOV2 VO in the AMImpl method say A() before page rendering ,then if user select LOV1 as 'SCM', will same data available in the dropdown (LOV2 dropdown is based on the LOV2VO)??
    Can u pls suggest me how can i render ,LOV2 when LOV1 as 'SCM' by using 'rendered' property without having valueChangeListner??
    pls suggest me the right approach as per my use case..
    waiting for reply,,
    Thanks
    Santosh

  • How to execute a backing-bean method before loading JSP Page?

    Hi everybody.
    Scene:
    An AdfForm, with
    -SelectChoice, referenced to a <list> of pageDef, which is referenced to an ADF BC.
    Goal:
    -Executing the query of the ADF BC before load the SelectChoice, to load the correct values.
    A good question to know:
    Exists any way to execute a method of backing before loading a JSP Page?
    Any similar to onload method of javascript. It could be fantastic.
    Thanks in advance,
    Jaime

    hi Jaime
    If I understand correctly, you are using the ADF Model for data binding.
    Because your goal is "Executing the query of the ADF BC ...", maybe you can also consider to refresh an executable in your Page Definition.
    See also "10.5.5 How to Use Refresh Correctly for InvokeAction and Iterator Bindings"
    at http://download.oracle.com/docs/html/B25947_01/bcdcpal005.htm#BJECHBHF
    It says "... You can use the Refresh property on iterator bindings and invokeAction executables in your page definition to control when each are evaluated during the ADF page lifecycle, either during the prepareModel phase, the prepareRender phase, or both. ...".
    Although you have posted your question in a structured way, which is a good thing, I think it would help to understand your question if you can explain how you determine "the correct values" for your list, what is varying?
    success
    Jan Vervecken

  • Can i change BI Query before loading it to BO using some if than else logic

    Hi guys
    In my requirement I have a BI query which the users want to run in BO now. Now the requirement is that they want to change some values in the BI query after the BI query has run based on some u201Cif than else logicu201D for each row.
    So my question is can BO modify a BI query. Is there some place I can write an abap routine between the BI query and the BO Report.
    Thanks

    Hi Adnan, in CR you can create Formula Fields, and you can include IF THEN ELSE statements there. This won´t modify the BI query, but´ll modify the results you see in CR (I believe this is what you want)
    Here, you have information about formula fields, CR 2008 User Guide in chapter 22
    You can do, something like this:
    IF {Tabla.Campo}=1
    THEN "AAA"
    ELSE "BBB"
    Hope this helps,
    Liliana

  • [ADF BC/JSF] body tag: InitialFocusID

    Hello!
    i have some questions concerning the InitialFocusID Attribute of the body tag:
    my jsf-jsp-page is pretty large so I must scroll to get to a specific faces-component.
    so what would be the behavior of InitialFocusID if i set it to this component described? (does it automatically jump to the component? - this is the behavior i need at page-load)
    hope some of you can provide me information.
    cheers, stef

    Thank you Gabrielle. At least now I have an excuse to tell my boss why I can't get it to work.
    Any idea when it may be available? Would it be a better idea to implement the table in plain vanilla JSF, and when ADF Faces is ready for ADF BC then do the migration?
    Are there any workarround to this problem?
    Thank you for your time,
    Pablo

  • InDesign crashes when loading master pages

    Having a problem loading Master pages, document is saved from CS3 to CS5 then when I try to load master pages from a different CS3 document InDesign crashes any ideas?

    Does it work any better if you save the other doc as a CS5 file (use a new name -- don't overwrite CS3 files becasue you can't go back easily) before loading the pages?
    It often helps to export the CS3 file to .inx, then open that in CS5 instead of the .indd.

  • Help! BC-Muse : Custom Code before closing Body tag

    I have a  project that is ongoing am constantly updating and publishing from Muse. I also have a custom code that is inserted before the closing body tag that I can't place in Muse (Because the feature is not supported). Every time I publish in Muse I lose this code because Muse will override the page always. So I have to go the code section in BC for the page and reinsert the code. This is giving me headache and stress on my back and sight.
    How can I permanently place  this code before the closing body tag once without the stress mentioned earlier and without Muse re-writing the code for that specific page (I used to think Muse publish edited pages and not the entire site, even when the option to publish 'only modified pages is selected'). Please HELP!

    Thanks Zak, this is the code:
      <script>
    $('#pdropdown').change( function() {
    $('#pdetails>*:not(.hide)').toggleClass('hide');
    var optionVal = $(this).val();
    $('#'+optionVal+'.hide').toggleClass('hide');
    </script>
    I have a web app that loads product list into a dropdown list. (How I wish we had a dropdown list form in Muse that can work with BC web app or a drop down list that can be use to target a specific  widget ID.) Maybe its time Muse widgets have ID so we can target them to appear by fading in, sliding in, etc.)

  • Change to blank page after loaded a page

    I am using Firefox 32.0.3 with Windows 7. Recently, when I load some pages, at first, every images, words, links are coming out as usual. When all the elements of the pages are loaded, that means the "Stop loading this page" symbol changes to "Reload current page" symbol, the page change to a blank page.
    If I press the "Stop loading this page" symbol during loading the page, it stops and all the contents are there. I can use this method to solve the above error. However, it will be hard to know when should I press the "Stop loading this page" symbol to avoid changing to the blank page. If I press early, only part of the page could be loaded. If I press late, it change to the blank page. It is very annoying.
    Except this current problem, there are 2 long-term error at Firefox. It uses a lot of memory to load the Firefox. I have only activated the Flash plug-in, no others, no toolbars. And open 1 to 2 tabs, but it still occupy a lot of memory. The second error is the Flash plug-in always crashed with Firefox. Please also fix it.

    Yes, tried Safe Mode, still the same. And just updated to latest version, also the same, problem is still here.
    And I have already cleared the history, caches, and cookies before I posted the question here.

  • How can I prevent white screen flash before loading page?

    Hi, I have a serious issue with this macbook including versions from mountain lion to maverick (now).
    THe problem is stated in the title.
    Sometimes when I load the next page, it would flash white then loads the page. It hurts my eyes to see this happen often. Sometimes it loads it with the websites background, sometimes it doesn't and uses safari's white blank page.
    I have disabled extensions and restarted safari and the computer with them off - it doesn't help or change or prevent it.
    I have switched the "open with new blank page" to other options as well with extensions off - it still didn't help.
    Please help me resolve this issue as every night it gives me eyes surprises of white flashes.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • Its loading a page before even i type in the right URL. how can i prevent forefox from automatically loading the suggested page before i hit enter?

    when i type in address bar, its great that the url is automatically filled in based on the history of browsing. but i dont want the page to be loading at the same instant. for ex. if i want to type thehindu.com, once i type 't' its taking for granted that i am typing thermopedia.com and completes the url and loads the page at the same time. I appreciate the url suggestion but not the page loading at the same time. this wastes my data usage (Highly inefficient).
    To complicate the problem, when i type the second letter sometimes it gets appended to the already auto completed url and heads to search for the completely messy words in the default search engine.
    Basically the addressbar has become useless and so is firefox usage. I'm completely frustrated and spoiled over an hour fighting the issue. please provide options to control the loading of the page automatically even if the url is automatically filledin.

    Try some basic troubleshooting.
    '''Try Firefox Safe Mode''' to see if the problem goes away. [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    *In previous Firefox versions, click on the Firefox button at the top left of the Firefox window and click on ''Help'' (or click on ''Help'' in the Menu bar, if you don't have a Firefox button) then click on ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac: Hold the '''option''' key while starting Firefox.
    * On Linux: Quit Firefox, go to your Terminal and run ''firefox -safe-mode'' <br>(you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • Windows 7-8.1 Can not change the MAC Address on wifi and cannot load login page in public HotSpot.

    Windows 7-8.1 Can not change the MAC Address on wifi and cannot load login page in public HotSpot.
    Adapter: Ralink RT3070 Chipset wifi adapter
    Tested: os Windows 8.1 Professional
    Hot Spot: 802.11b
    The first problem windows 7-8.1 got IP adress and connect he public HotSpot  but  cannot load login page or any other page. It does not work with it.
    The second problem Wifi canrd/configure/Advandes (No network adress change function).Tested with the default windows driver and the ralink rt 3070 driver the same problem.On windows XP the same function the same driver works perfectly.
    multiple users to have expressed interest in the problem But Microsoft not corrected the problem window7-8.1 10?
    lizardsystems.com/wiki/change_mac_address/faq/change_mac_address_in_windows_7
    blog.technitium.com/2011/05/tmac-issue-with-wireless-network.html
    superuser.com/questions/519189/how-to-change-the-mac-address-in-win-8-to-spoof-a-roku-player-through-a-wifi-spl
    social.technet.microsoft.com/Forums/windows/en-US/59e07df3-471c-499e-ad5f-e7cb507595df/cannot-change-mac-address-in-windows-7-driver-has-option-doesnt-work-neither-does-regedit-ms?forum=w7itpronetworking
    networksteve.com/windows/topic.php/CANNOT_CHANGE_WIRELESS_%28SPOOF%29_MAC_ADDRESS_ON_WINDOWS_7/?TopicId=16810&Posts=1
    On windows XP or linux have a MAC adress Change function  allow 00 mac adress and another normal mac adress range.On windows 8.1 all Mac changer program dont work.This 2,6,A,E on second adress are not vaild Mac adress. You simply can not use normal MAC
    addresses on windows 8.1.When i connect the usb the Pc windows 8.1 recognizes the adapter but the default  driver and the downloaded ralink driver the same problem.On windows xp the current driver works perfectly have (Local Mac Network Adress) funktion
    and works with the 802.11b hot spot.I got the internet my PC and laptop too public HotSpots and another wifi HotSpots if wont work correctly i can not use neither the windows 7,8,8.1 or 10. Many users have expressed interest in the problem more forums.
    The 3. problem im tested in virtualbox the windows 7 and 8.1 on 8.1 (on the blue wifi platform) not show correctly the signal strengh. On windows 7 show this correctly.The windows 7-8.1 Configure/advanced the advanced options on Ralink 3070 the default (windows
    driver) somehow downgraded function is less than for Xp. Configure/advanced the advanced options (needs to be upgraded in the future) because it does not advance but rather regressed.
    Today it is very common these wi-fi technology increasingly used (hotels,Public Hots Spots,Internet coffe,) growing free bublic wifi projects. The wifi funktions on windows  need debugging and modernize.The quality of Wi-Fi is now the operating system
    is now a thing order which is not good then the operating system is unusable.

    Hi,
    For changing the MAC address for Windows 7 is designed with some limitation, we cannot get over it. Thanks for your understanding.
    Under Windows 7, the possible range of spoofed addresses for wireless adapters that can be set is limited.  To be used by Windows 7, a spoofed MAC address should have 0 as a least significant bit (unicast) and 1 as a second least significant
    bit (locally administered) in the second nibble.  Thus possible values for the second nibble are limited to 2, 6, A and E.
    In other words 
    MAC address:  “XY-XX-XX-XX-XX-XX” “X” can be anything hexadecimal.  The hexadecimal “Y”, written in binary format, is  Y:  “kmnp”,  where “p” is the least significant bit; 
    p=0 --> unicast;
    p=1 --> multicast;
    n=0 --> globally assigned MAC;
    n=1 --> locally administered;
    So, actually MAC can be changed  to any combination in which p=0 and n=1;
    “Y” can be 2, 6, A or E.
    So the possible MAC addresses in Windows 7 for wireless adapters:
    X2-XX-XX-XX-XX-XX
    X6-XX-XX-XX-XX-XX
    XA-XX-XX-XX-XX-XX
    XE-XX-XX-XX-XX-XX
    For the wifi hotspot issue, please check this blog to see if it can be helpful.
    Windows 7 Connectivity Problems in Public Hotspots
    http://blogs.technet.com/b/patrickr/archive/2010/07/28/windows-7-connectivity-problems-in-public-hotspots.aspx
    Kate Li
    TechNet Community Support

  • I click on a link and It won't automatically load the page; I want to change this setting. HOW??

    Hi,
    When I ope my mail in gmail. I click on a link to open a new tab and show me what ever it is I've just clicked on....Firefox won't just load the page like it did before I upgraded to this latest version. It says: Firefox prevented this page from automatically redirecting to another page. and asks me to allow. I allow.
    How can I tell firefox that if I have clicked on a link, I want to view it. That seems intuitive enough. I don't want to allow every time. I do this all day~
    Thanks,
    Melissa

    See:
    *Firefox > Options/Preferences > Advanced > General : Accessibility : [ ] "Warn me when web sites try to redirect or reload the page"
    The setting in "Options > Advanced > General" is meant as an accessibility feature, as you can see by the label of that section, so that people with disabilities or people who use screen readers do not get confused and is not meant as a safety protection to stop redirecting.
    See also:
    *https://support.mozilla.org/kb/settings-network-updates-and-encryption#w_general-tab
    *http://kb.mozillazine.org/accessibility.blockautorefresh
    *http://kb.mozillazine.org/Accessibility_features_of_Firefox

  • Hi, My printing has suddenly changed in adobe to a large scale, as in, what should be one page of print comes out as 24 pages?   I havent changed anything, its happening on more than one document also, I have to stop my printer before all the pages spew o

    Hi, My printing has suddenly changed in adobe to a large scale, as in, what should be one page of print comes out as 24 pages?   I havent changed anything, its happening on more than one document also, I have to stop my printer before all the pages spew out. I have tried printing 'one single page' and it does exactly the same? Help?

    Is the Poster Print feature turned ON?

  • How do I change the spacing before or after a hard return in Pages 5.5.2?    I am working on an academic article and need to specify paragraph formatting (OS X Yosemite 10.10.2)

    How do I change the spacing before or after a hard return in Pages 5.5.2?    I am working on an academic article and need to specify paragraph formatting (OS X Yosemite 10.10.2)

    Hi Michele,
    Select the paragraphs where you want to change the spacing.
    Format Panel > Text > Spacing
    You can change 1.0 - Single to something else, or type a number in Before or After.
    Regards,
    Ian.

Maybe you are looking for

  • IPhone 6 Battery Usage setting not working.

    When I go to my setting and check my Battery Usage setting it states: "Battery information will be available after using iPhone for a few minutes". I've been using it for hours and I get the same response when I go to the setting. I've turned off my

  • TS1702 ICloud backup box

    On my screen I have a box that I cannot remove or get in to my IPad. The box states that I have not backed up in 2 weeks and that the back up occurs when the unit is plugged in and locked and connected to Wi-Fi well it is plugged in and it still will

  • Factory-unlocked iPhone 4 will not activate

    Hello, I bought iPhone 4 (Factory-unlocked) from Australia and brought back to Japan. I tried to activate the phone first time and it asks me to insert SIM. So I inserted the trimmed SIM (Japanese). But the iTunes says "The SIM card inserted is not s

  • Restore to earlier date

    I seem to have mistakenly deleted something on my PowerBook a couple of days ago when I was deleting some images and dropped them onto the desk top instead of the bin by mistake. The upshot is that I can't activate Entorage, Word or any of the MS sui

  • ITunes 9 crashing

    Just updated iTunes and upgraded my iPhone firmware. Now everytime I try to open iTunes it crashes. Stupid update....so what should I do - try to deinstall and reinstall iTunes 8.0? Message was edited by: cputnal