Constant  declaration problem in View?

Hi All,
In Webdynproapplication I am trying to declare the Constant value after the public static void wdDoModifyView() method in View. When I am saving this it's automatically disappear.
Please to give me ides why this is not viewing when iam saving the value after declaring constant in View.
Please help me out.
Thanks
Nageswara.

Hi, I would like to expand on Raman's reply:
For the source code of every controller, you will see a placeholder in the file demarcated as follows:
    //@@begin others
    //@@end
Here you can enter any Java code that you like, (constants, variables and functions).  This section of the file is saved "as is" by the IDE and not regenerated all the time.
Often in a Web Dynpro project you have parameters variables in the default controller which you would like to use in other controllers, but which are never used directly in displays.  In general, the Context should only contain variables and parameters which are directly needed by UI elements in Views.  Instead of putting these variables in the Context, a cleaner way is to create these variables in the "others" section, together with getter and setter functions (also in this section), and calling the functions from other controllers as needed.
Walter

Similar Messages

  • Const declaration discussion

    (Since there is no "possible/future features" forum, I'm posting here, since a lot of the postings here deal with such matters.)
    Like some other Java users I'm a fan of the const declaration concept - const methods (not modifying the instance) and parameters (the object the parameter references will not be modified by the method). In part because it adds valuable error checking ability at compile time, and in part because it makes method declarations a lot clearer in many cases.
    (I'm not advocating a run-time conversion between const/non-const like in C/C++. Like e.g. final, this characteristic should be fixed after compilation.)
    I know there is an RFE on this - which was closed some years back, without much evaluation (not posted there, anyway). I've also been able to find some shallow discussions in the forums, and some have hinted that it can be a complex feature in some scenario, perhaps implying that it would not be without caveats.
    Perhaps some readers here know more about this issue and why the const keyword (which is reserved in the Java spec) has been decided to be unused?

    I don't have a deep knowledge of this, but AFAIK it's not practical (or possible) for the compiler to enforce this.
    Consider this method:
    static void printAndPeel(const Apple a, Fruit f) {
    System.out.println(a + "is an apple");
    System.out.println(f + "is an unpeeled fruit");
    f.peel();
    System.out.println(f + "is a peeled fruit");
    The 'const' Apple referred to by a is unchanged by the method 99% of the time. But when a==f , a strange bug occurs (from the point of view of anyone expecting a to remain unpeeled). The same would happen if this were a non-static const method of Apple, where 'this' takes the place of the parameter 'const Apple a'.
    Presumably the source of the problem is that you want objects to be const (within the scope of a method, say), but using syntax which declares references to objects as const. But there can be all kinds of references to an object, including ones in different threads.
    You could ensure an object was const by:
    (a) making it immutable always,
    (b) making it mutable but (say within the scope a method), ensuring that absolutely all references to the object are const (the Collections.unmodifiableCollection() wrapper attempts to do this),
    (c) having some kind of lock in the object itself which is enabled during the scope of a method, and throws an exception if someone tries to modify the object.
    Re these:
    (a) is the way to go, I think. I'd like to see an 'immutable' keyword you could apply to a class, which ensured all its fields were final and immutable (primitives would count as immutable). This would both be useful as a compile-time check for developers, and as a hint for the JVM to do various optimisations.
    (b) I don't see how this could work at compile time. If an object is mutable, you want it to be temporarily immutable sometimes (within the scope of a method, say). The compiler would have to prove that all non-const references accessible in that method could not point to the const object - even references of type Object! This places very stringent restrictions on what you can do in a method. Additionally, you have to ensure other threads can't change the object - very hard to enforce.
    (c) sounds possible but not ideal, because it's a runtime check. The above printAndPeel() method would compile OK and fail occasionally when run. But maybe this solution could be implemented in the VM in a fairly efficient manner by reusing the synchronisation locks somehow?

  • Problem in viewing a pdf file in android adobe reader

    Hi All,
    I am having a problem in viewing a pdf file in android adobe reader, the problem is that in pdf file there is a table that has some text, when I view the pdf file in android abode reader then the text inside the table is not shown but when I view the same file in windows adobe reader everything is fine i.e. the text inside the table of pdf file looks fine.
    Please tell me is this the issue regarding android adobe reader or related to PDF stream? Please address the issue as soon as possible.
    Kinds Regards
    rha

    Can you please share the pdf file where you are encountering the issue?

  • Problem with viewing Adobe PDF documents

    Problem with viewing Adobe PDF documents
    I have a Windows 7 Home Premium Computer
    I have read all the suggestions and I have tried downloading multiple versions of Adobe Reader for Windows 7 and Vista from http://get.adobe.com/reader/otherversions/.
    Prior to downloading each version I would delete the current version using  control panel programs uninstall.
    After each new installation I would shut down the computer and then restart the computer.
    I have tried downloading versions with and without having my antivirus (CA Total Defence) running.
    I am told after download that the version downloaded successfully.
    I have read Acrobat Help http://helpx.adobe.com/acrobat/kb/troubleshoot-reader-installation-windows.html and followed the instructions.
    None of the above has helped.
    The problem is no matter what version of Adobe Reader I download, I cannot seem to open a PDF and read it. Nor will the Reader itself stay open.
    1. If I try opening the reader from the desktop link or from the actual program menu, the reader opens for about 5 seconds and then closes of its own accord. If I try to click on any of the reader menus (eg File, Edit, View, Window, Help, Tools) then a warning bell is sounded and the menu does not open. Shortly thereafter the reader closes.
    2. If I try to open the reader by double clicking on a PDF document then the reader opens but the document is not shown (only the grey PDF reader screen is shown) and then the reader closes after about 5 seconds of its own accord.
    The desktop shortcut shows as the 'red Adobe Reader icon'. But the actual program menu icon shows as a blank folder icon.  All PDF documents show as the PDF Adobe icon.
    I have tested various PDFs and none will open on this computer but they will open on other computers.
    I have created a word document and saved it as a PDF. It looked like it had save correctly (has the appropriate icon) but when I try to open it as per step 2 above then the document is not shown and then the reader closes after about 5 seconds of its own accord.
    Does anyone have any ideas about what is going on and how I can fix this?
    Could you please answer in this forum and email me at [removed]
    I am so puzzled and frustrated.

    Thank you so much this did the trick.
    I spent so many hours on trying to sort this out and your answer was so  simple and clear.
    Regards
    Kazzamday

  • Problem during view Adobe Form in Web Request

    Hi All,
    I am facing problem while viewing the adobe form inside the Web Request form.
    Let me describe the issue clearly.
    I need to have a table in Adobe Form.So i created one table type and bind it to the table structure created, in Adobe Form.
    Then i uploaded the form as web request successfully.
    Now when i m trying to view the form from web ui, its unable to assign child node data at runtime.so dump is coming.
    Can anyone show light on this....i have tried all the possibilities.
    Unfortunately there is no standrad scenario available for reference.
    Regards,

    Hi Satish,
    Thanks for your reply.But this is not my requirement.
    If you will go to tcode CRM_UI and log in using business role CRMGRMPRGMAN, then go to Application and open one application.Here there is one assignment block called 'Application Form'. Here i have uploaded my Adobe Form as web request.
    This is working fine when i have simple linear form.
    But when i am using table inside the form and doing binding for it, Application is getting created with that form but while openning it here in the assignment block, dump is coming as below.Its not able to assign the child node.
    The ABAP call stack was:
    Method: NODE_ELEM_2_STRUCT of program CL_WD_ADOBE_SERVICES==========CP
    Method: NODE_2_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: DATASOURCE_2_FM_PARAMS of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF_DDIC of program CL_WD_ADOBE_SERVICES==========CP
    Method: CREATE_PDF of program CL_WD_ADOBE_SERVICES==========CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/CADOBE==================CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Method: IF_NW7_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/C8STANDARD==============CP
    Regards...

  • Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the pag

    Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.

    Hi, I'm having problems with viewing a web page created with Adobe Muse CC latest release, I followed the various guides provided by Adobe, but the problem persists. The problem especially concerns the distorted display (the contents do not fit on the page, so it suits size automatically) to a mobile web page to be displayed not on a normal browser, but in a WebView.

  • RoboHelp for HTML 9 - Problem with viewing .chm file on 64bit machine

    I am working with RoboHelp for HTML 9 on a 32 bit machine. Recently, we encountered problems when viewing a .chm file on a 64 bit machine. The TOC was fine, but the topics did not appear, only error message "Navigation of this web page cancelled". My compilation settings did not change since the last compilation some months ago. What happens?

    Generally, I've only ever seen the need to ensure the CHM is unblocked if it has been downloaded from the web. I could see where it could possibly occur if one moved the CHM from a network drive to a local drive, but I'm skeptical that would be required in that case.
    Cheers... Rick

  • I have a problem in viewing few sites when i'm using dsl broadband

    i have a problem in viewing few sites when i'm using dsl broadband...do i need to make any change in my settings  ??

    Only if you are aware that these sites are definitely compatible with your browser.    See my FAQ*:
    http://www.macmaps.com/browser.html

  • Problems in viewer

    I have problems in viewing my clips in continuous mode in the viewer.
    The first two seconds work, but after that its all jagged until video stops after 5-6 seconds and only audio continues!

    Please give exact information. What's the media? How it it get into your computer? What format, codec, frame rate, what drive is it playing off? There is simply not enough information here to make any kind of assessment.

  • PSP: problems with viewing data

    Hello.
    I'm currently working at on-line shop and have some problems with viewing data from database. When there is no much inserts to table its working very well. But after inserting all Inserts I have its acting weird.
    Sample with 10 INSERTS:
    http://gafgarion.atspace.com/psp/1.jpg
    Sample with 100 INSERTS:
    http://gafgarion.atspace.com/psp/2.jpg
    I'm using Oracle 9i. when I have more data in my database its acting weird. There is SELECT only from one table, but sometimes I have data from other tables aswell.
    I didnt touch any config files or something else. Only created new User and DAD.
    any ideas what should I do to fix that ??
    thnx in advice

    Hello,
    My guess is that you are speaking about PLSQL Server Pages (PSP), and the PLSQL Web Toolkit.
    This is why I do not think that you will have lot of answer since this forum is targeted toward Web Services developer (XML, SOAP, and so on)
    I am inviting you to ask your question on the general Oracle Application Server - General or PLSQL forums.
    Regards
    Tugdual Grall

  • Declarative validation on view objects

    Is it possible to set declarative validation on view objects(which override validation in underlying entity objects)?

    [Duplicate post|https://forums.oracle.com/forums/thread.jspa?threadID=2325821&tstart=0]

  • Problem in Views!!!!!

    hi all of you......
    i have a problem regarding views, if any one can help........Thanks.
    I have 2 view name Emp1 and Emp2 respectively.......
    I want to know, if any one performs DML operations (insert, update, delete) on Emp1
    Emp2 should automatically be updated......(how to perform this, without using Triggers)
    THanks......Please reply

    You need to read the basic concept documentation about views.
    You will find it at http://tahiti.oracle.com
    Look for "View" and "Concept"

  • Problem with viewing activities

    Hello,
    we have SCSM 2012 R2, we have SCSM console installed on 2 computers. Only on one computer we have problem with viewing activities. For example, we go to Work items - Service Request Fullfulment - All Open service requests - Choose one request and open a
    form, click Activities, double click on step (RAXXXX) and window with Review Activity details doesn't appear.

    Was there a second monitor connected to the computer before and is disonnected now? Sometimes it could happen the activity form will open on the "second non-existing monitor". Do you see the activity form window in the task bar of the affected computer?
    If so activate the activity form window, press "alt"+space, select "Move" from the menu and try to move the activity form window to the main screen suing the arrow keys. 
    Andreas Baumgarten | H&D International Group

  • Problem with viewing modules on iPhone / iPad

    Hello. I have a problem with viewing my modules on iPhone and iPad. I have the same problem previously with Captivate 6, which I honestly thought that it is solved on Captivate 7, downloaded the trial version just to test it and I got nothing improved about that,
    So, when I publish and upload my course on cloud.scorm.com I got this:
    iPhone - It only shows the top left of slides and I get full voiceover
    iPad - shows photo top left on last slide (not first?) and hangs with no voiceover
    This is a simple 4 slide course which I use for testing the project.
    If someone wants to test here is a link: http://cloud.scorm.com/sc//InvitationLaunch?userInvitationId=d75b27a6-e7df-41fa-87e6-d7576 48aea93
    And I really expect some help with this, because it's really important not to have this type of problems.
    Thanks.

    "And I really expect some help with this..."
    Please remember that this is a user forum, not Adobe Support.  If you've paid some money for something and it's not working as you expect, you certainly have the right to require the manufacturer to provide after sales support. 
    But you would not track down another purchaser of the same product and tell them they owe you support...would you?

  • Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    Problem with viewing a rented movie. Whem I try playing it I get a message saying my apple tv is not authorized.

    is this a rental from the Apple TV or one you have in iTunes. If from the Apple TV try restarting the Apple TV, if from iTunes, try de/re-authorising your account.

Maybe you are looking for

  • Unable to restore from my icloud backup

    I backed up my 3gs via iCloud and purchased a new 4s. I was expecting to be able to restore from my iCloud backup, but when i tried, it said there was no backup information. I did reset the 3gs before attempting to get the restore started on the 4s.

  • DTTestBed fails with Null Pointer Exception

    Hi I have installed Tim's DTTestBed on standalone OC4J version 10.1.3.2.0 using the JDK from Oracle JDeveloper10.1.3.3\jdk\bin. Tim's installation calls for J2SE version 1.4.2. I used the J2SE that Jdeveloper 10.1.3.3. The Sample EMPLOYEES.xml in Tim

  • Dreamweaver &Business catalyst

    Hi everyone, I got a very strange question. I downloaded the whole website into my dreamweaver cs4 console. When I preview the average webpage from the DW, the name of the webpage just changer to a weird one,like TMP3gl652end2.htm When I preview the

  • Delivery Note Mandatory in MIGO by movement type

    Hello everyone I would like to know How I can set delivery note as mandatory in MIGO transaction by movement type. Thanks in advance.

  • Export DB from 7 on \\Server1 into Oracle 9i on \\Server2

    Windows Environment I have a DB on \\Server1 with Oracle 7 I have Oracle 9i installed on \\Server2 I want to move the DB from \\Server1 onto \\Server2... the whole DB and I expect user roles, permissions etc i.e. a replica of the DB Thanks