Stateful BSP Application - Session is lost for the first page ...

Hello experts,
so after changing via redirect to an https site (from http : see Change SSL_ACTIVE) my stateful BSP session is lost for the "first moment".
When I trigger one event (it doesn't matter which -> hitting a link, pushing a button), on the next page my "stateful context" is back again.
So I guess that when going through the next reqest/response cycle the BSP context is read from temporary client site cookies (sap-contextid and sap-appcontext)?
So I want to have my BSP context directly after the redirect. Does anybody know how to check for the cookies and assign to the appropriate session or how to trigger the automatic reading of the cookies which happens after the first request/response cycle?
Thanks in advance.
Regards,
Volker

Hi Chandra,
It is very much possible. I have handled similar requirement.
Just check whether you are passing right attributeInfo.
If your context attribute is directly under Root context.
Do like this:
AttributeInfo attribute     = wdContext.getNodeInfo().getAttribute(IPrivate<Testview>.IContextElement.<ATTRIBUTENAME>);
wdThis.wdGetAPI().requestFocus(wdContext.currentContextElement(), attribute);
If your context attribute is under a node(i.e. other than Root say NODE)
AttributeInfo attribute     = wdContext.node<NODE>().getNodeInfo().getAttribute(IPrivate<Testview>.I<NODE>Element.<ATTRIBUTENAME>);
wdThis.wdGetAPI().requestFocus(wdContext.current<NODE>Element(), attribute);
*In this case(if you are using different NODE) you have to make sure that you have created NODE element already and lead selection is set for this created element before setting this focus* 
Hope this solves your problem
regards,
Siva

Similar Messages

  • Page footer information is missing for the first page alone.

    Hi All,
    After exporting to text format, Page footer information is missing for the first page alone. Any reasons?
    Thanks for any help !!
    Rgds,
    Shriram

    If you search the Business Objects Articles (see the link to the left on this page) for Export Limitations documents you'll see that page footers/headers are not supported when exporting to Text format (same for Page N of M.
    If you open up a text file in Notepad - you'll notice that there is no Insert | Page Break (as there is in MS Word).
    CR can't possibly know in advance where the page breaks will occur in a text document (or the application in which the document is opened) so most anything in CR having to do with pagination is not supported when exporting to Text.
    The Export Limitations document is a handy item if you do a lot of exporting.

  • Master Page: Alternatives (Subform Set) works only for the first page

    Hi everybody!
    I have bumped into a very weird problem with ADOBE Forms:
    When I create an 'Alternative' in a Context area and then place it on a Master Page, it works only for the first page. On the rest of pages it always show the 'TRUE' subform, regardless of the condition (which is not changed, of course). Absolutely the same Alternative works perfectly in a Content area for all pages.
    Has anybody seen something like this? Any ideas why?
    Thank you!

    This happens because of the processing of the form.
    You can see this here:
    LiveCycle ES2 * Adobe LiveCycle Designer ES2
    You have to put a own variable, which is set with the value you want in the very beginning.
    I know, it is not that logical in the first moment, but it makes sense.
    Regards
    Florian
    PS: This space SAP Interactive Forms by Adobe is the correct for questions like that

  • An upgrade for my IPod 3rd gen  and now all my APPS close as soon as they open, except for the first page and the bottom line.

    I just downloaded the latest upgrade for my 3rd gen IPod and now most of the Apps close as soon as they open. Only the first page of Apps and the bottom line will operate. Does anyone know of a solution. I checked with common problems and I don't have other Apps open.

    If the ipod was completely drained of power, you have to leave the ipod connected to a power source (Like your PC) for up to an hour before it will have enough power to power up and be seen by windows and iTunes.
    http://docs.info.apple.com/article.html?artnum=61711

  • I need to secure a pdf so it cannot be edited, except for the first page.  Is this possible?

    Can you secure all but one page of a pdf?  I would like the first page to be able to be edited, but the rest of the document to be protected from editing, is this possible?  If so, how?
    c

    What do you mean by editing PDF? If you have a PDF form and want to make some form fields, in your case pages other than the first page, non-editable, you can lock the form fields on all pages other than first. You can write a JavaScript that does that, include it in the original PDF form and activate it at some point in time (like when a certain button is clicked, or certain form field gets focus). If you mean other ways of editing, like changing text on a page, you cannot protect only part of the document from that.

  • "You are opening the application"..."for the first time" problem

    Hi -
    We recently upgraded to Mounatin Lion and when opening a couple of different applications (Quickbooks and Vectorworks) we often, but not always, get a warning message saying something like "You are opening the application ____ for the furst time" even though the application has been opened many times before.
    I've seen a few older suggestions in the archives (pre Mountain Lion) that involve opening a Terminal window and entering some lines of code.  Is that my only solution, or is there a file that I can trash or something else?
    Thanks -

    Having this exact same problem - Not just after the upgrade, but began a few months in.
    Hope a solution comes up. Most tips online are from 2006 or 2009.

  • How to delete the first page from a large number of documents

    Hello all,
    My company has migrated from Adobe Acrobat pro 8 to 11. In version 8 we had
    used Document Processing to remove the first page from all pdf's within a
    directory (5000+). This process took about an hour.
    Now my research has led me to use Actions in version 11, however it appears
    that the action require each document to be open and saved (one after another)
    in Acrobat in order for the first page to be removed.  This thrashing has made this process very
    slow to the point where it's useable.
    Is there any way to run actions from the command line
    so time isn't wasted opening up each document in Acrobat? 
    Is there another way to quickly remove the first page
    from a PDF in bulk?
    I'm outside my expertise area here, so if you need any additional
    information let me know.
    Thanks in advance.

    Indeed, batch processing in Acrobat XI is inferior in many ways to what it was previously.
    To answer your questions:
    1. No.
    2. Yes, it can be done using a stand-alone app much more quickly and more efficiently, but it's somewhat more complicated to develop such an app than to set up an Action in Acrobat.

  • I can only find the first page of a 5 page saved document on my macbook pro. Also all my sent email is missing.

    I saved a 5 page document on my macpro laptop in iwork. I emailed the document. The person claimed she didn't get the email. When I went to look at my sent mail the entire sent mail folder is gone and my saved document is also gone except for the first page. What happened? How can I get it back?
    Also, how did my Notes app stuff end up in my aol emal folders?
    Message was edited by: nancyloufromny

    From the menu bar, select
     ▹ System Preferences... ▹ Network
    Click the Assist me button and select Assistant. Follow the prompts. How far do you get?

  • I need a section to display at the bottom of the first page of my report

    My report displays a number of records, but at the bottom of the first page of the report, I need a section (a remittance slip) that would only appear at the bottom of the first page.
    I've tried using a page footer with conditional suppression.  This is fine for the first page, but in subsequent pages, the footer space is reserved, so the records in my details section only go 2/3's of the page.  "Reserve minimum page footer" seems pretty useless.
    I've looked into using a details section that uses "Print at bottom of page".  But since my report contains groupings, this messes up my report structure and leaves a lot of extra space as well.
    I can't guarantee that a group footer section will always be on the first page, since it is found at the end of each group.
    Any suggestions?  Anything I'm missing?
    Thank you.

    hello plynch,
    i would use the method that Abhilash suggested.
    " I guess if we have a section (other than the Page Footer, perhaps another Details section) that is always suppressed except when the record count reaches x numbers and have it printed at the bottom, this could be achieved"
    if you
    1) create a new formula for every section that counts the height of the section...
    whileprintingrecords;
    numbervar lines:= lines + .2 
    //use the above for a details section that is .2 inches in height
    whileprintingrecords;
    numbervar lines:= lines + 2.2
    //use the above for a group header section that is 2.2 inches in height
    2) do the above for every section (yes it's painful but it works) and you'll see how the sections add to the running total
    3) create a new details section that is conditionally suppressed if the page is not equal to 1 and if the running total count is not within a certain height range
    4) make this new details section the height that you want the remittance slip and also have a New Page After forced for the section conditional on it being page 1
    the above takes a bit of finicky work but if it's worth getting rid of the blank space...
    cheers,
    jamie

  • Restrict window only on the first page of smartform

    Hi guys
    Please tell me how to restrict the window so that it doesn't appear on the second page. it should appear only on first page.
    I have check the additional events of the window. Even after that its appearing on second page .. how to restrict

    Hi,
    You can do the following thing to restrict the window in the next page.
    1. Copy the first page with all the windows to PAGE2.
    2. Delete the window whihc u don't require in the 2nd or any next page (PAGE2).
    3. Assign 'Next Page' field value as % PAGE2  for PAGE1 & PAGE2 under the General attributes Tab.
    These steps will help you retain a window only for the First page.
    Asha

  • When printing multiple pages from an internet email or webpage, only the first page is properly fitted on the page. All subsequent pages are cut off on the right side. What's the fix?

    I have set the print settings to "Ignore scaling and Fit to Page" and it seems to work only for the first page of a multi-page webpage or email chain. Nothing I've done seems to fix it. I've set the print settings to 90% scale in page set-up in order to print FedEx online waybills properly, but I can't seem to solve the other problems.

    Doc: I've had a similar experience, and here are the details, investigation, and a workaround. My printer is a Brother MFC-645CN, and I'm using Snow Leopard (10.6.8) on a 2010 iMac quad i5 connected to the printer over my ethernet LAN. Are you using a Brother printer?
    Firefox has shown this kind of nasty issue for the past six months or so. It seems to be related to the imaging algorithms in Preview when dealing with Firefox (now at v.12) and the Brother printer -- the screwy second page (and beyond) show up skewed and up-sized when doing a print preview also. No such problem seen in Safari or anything else. I am not currently using any other Mozilla apps on this Mac besides Firefox.
    A few months ago I tested printing from my administrator account and  a different user account. Firefox printing was completely normal and as expected. When I went back to my main user account, back came the funky second page.I went through extensive troubleshooting to try to chase it down, systematically removing and replacing apps and preferences and many other Library files related to printing, Brother drivers, Firefox, and Preview. Nothing helped. Solution was to migrate my user files to an account where the printing problem wasn't happening. I deleted the problem user account.
    Everything was fine for about three weeks, and then with no warning, printing was back to the bad second page, just as before. I am stumped, and I'll let smarter people try to figure it out. I use Firefox a lot, and it's possible that some add-on setting is interfering, or a web page I visited turned the printing funky again. I just don't know.
    Also checked on a Mac G4 running Leopard (10.5.8) and Firefox 3.6.28. No printing/preview problems there.
    Now, for the work-around I am currently using -- print each page separately, one at a time. Page 1, then page 2, etc. Preview and printing looks completely normal. Hope this works for you until the bug is located and squashed for good.
    Glenn

  • Issue with : Stateful BSP Applications: New State Management Option

    Reference:weblog by Thomas Jung -  /people/thomas.jung3/blog/2004/11/09/updated-stateful-bsp-applications-new-state-management-option
    I see a comment by one user to send the complete code... I am not sure what else can be sent   - try it out rather than getting spoon-fed. - getting offline - sorry...
    I had two issues with this ITSM way of session handling.
    First - if you are using an SP42 environment, check CL_BSP_RUNTIME=>ON_SESSION_CMD() to see if CANCEL is defined as an option. If not make sure that you use &sap-sessioncmd=CLOSE" instead of the &sap-sessioncmd=CANCEL" . If CANCEL is not defined , it will give you shortdumps...
    Second - when I closed the window, the session was not terminated. I used onbeforeUnLoad="exitBSPApplication(); instead of onUnLoad="exitBSPApplication(); and it worked fine. Not sure if it has any other issues.
    But now I am facing a new issue... all but one application is not ending... I have no clue on why this is happening.. I am still checking..
    Thanks Thomas, you are the best, as always...

    Thanks for checking the code in your system.
    After some investigation, I found the behavior as explained below.
    If the actual url has any fields passed as parameters, e.g.. /default.htm?var1=a&var2=2 ...
    - if I use CANCEL as the option, a shortdump is created and the session is not closed. if I use CLOSE, Session is terminated and no shortdump happens.
    If the actual url does not have any parameters, e.g.. /default.htm ...
    - CANCEL does the work, but CLOSE does not exit the session.
    In my applications I used request->get_form_fields to see if there are any parameters, and if there are, then I use CLOSE as the option and else, I use CANCEL. So now, the session
    management works beautifully...
    There is a good chance that I am doing something wrong here too.

  • Event gets lost when iView is uncompressed for the first time

    Hi All,
    we are developing an application that manages attachments (meaning: files stored in KM) and per request by the client consists of several iViews. One of them contains a search interface, another one lists the hits that have been found. So the iViews have to communicate.
    We achieved the funcionality by using portal eventing and the HTTP session. The search iView compiles the search string and writes it to the session.
    request.getComponentSession().getHttpSession().setAttribute(searchString, .....);
    We then use javascript to fire an event on which the searchResult iView reacts and fetches the searchString from the session. The actual search is then performed within the searchResult-iView.
    The only problem is that the client requested that the searchResult iView should initially be collapsed. So we set its "initial display" property to "collapsed" and implemented some javascript functionality in the search iView that expands the searchResult iView when a search is performed:
    function openIview( iviewID ) {               
      var temp = parent.pageSupport._getIvuPageId(iviewID);
      var ivuBankObj = parent.pageSupport._getIViewBank(temp);
      if (ivuBankObj.getToogle() == 0) {
        var trayid = ivuBankObj.getTrayId();
        var event = document.createEventObject();
        event.type = "click";
        if(parent.htmlb_TrcToggle(trayid,'0',event)) parent.pageSupport.ivuToogle(iviewID);
    We then fire an event:
    EPCM.raiseEvent('...', 'SearchEvent', param, '');
    All works fine, except for the very first time the searchRersult iView is expanded after the application (meaning the page containing the iViews) has been opened. The searchResult iView is properly expanded, but the event seems to get lost so that no search is being performed (no error, but no reaction by the iView).
    We observed that it seems as if the contents of the iView are only fetched by the browser when it's expanded for the first time. (The progress bar of the browser shows loading activity when expanding the iView for the first time). Supposedly the event gets lost because the serachResult iView doesn't fetch it since it's just being loaded.
    After this initial erroneous behavior, the iView can be in compressed or expanded state before a search is being performed and everything works fine.
    Interestingly enough the problem can be resolved by setting a timeout of several seconds after expanding the iView and before firing the search event. But we find this to be a very questionable (and inconvenient) method of solving this problem and would rather like to solve it properly.
    Does anyone have any ideas how we could achieve this? Is there a way to determine whether an iView has been loaded by the browser (because obviously displaying and loading an iView seem to be two different things)?
    Thanks in advance,
    Jens

    We introduced a boolean "isInitial" flag to the bean which we use to determine whether the iView is expanded for the first time or not. If so, there is a timeout of 2 seconds before the event is fired.
    Not really satisfactory, but working.
    Jens

  • Lost photos after syncing iphone 4 for the first time

    I just connected my iphone4 to my pc for the first time and now my pictures are all gone (on both computer and phone). Any way to get them back?

    Sounds like you performed a sync to an empty Outlook, correct? You never want to sync to an empty application. Doing so will erase the data on your phone. Before you do anything else, put one unique contact, calendar & note entry in Outlook.
    As to restoring your lost data, the key question is have you performed a sync since the sync that erased your data? If not, restoring from backup will restore the data. If you have synced since that initial sync, your data is gone. So, if you have not synced, do this: First disable auto-sync in iTunes>Preferences>Devices(under the edit menu if using Windows). Connect your phone, right-click in the device pane & select "Reset Warnings". Right-click again and select "Restore from Backup". If prompted to create another backup, decline. When the restore completes, you must then sync to restore your iTunes content. You'll get a popup regarding your contacts, etc., asking to "Merge" or "Replace". Select "Merge".

  • I synced my 3G with itunes for the first time and lost all contacts and information on phone, help?

    I synced my 3G iphone with itunes for the first time, and lost everything on my phone. how do i get it back?

    You don't.
    You synced your iPhone with iTunes for the first time after how long?
    And this didn't happen by syncing only. This means you transferred the backup for another iPhone or you restored the iPhone with iTunes. It is not possible for everything to be lost by syncing alone. All iTunes content on your iPhone can be lost but not any photos in the Camera Roll and the same for contacts unless you synced contacts with an empty address book application on your computer.

Maybe you are looking for