How to get Context Node data in respective HTM page

Hello Experts,
My Scenario is as follws: Two views are there one is table view[contain customer data] and another form view[where i require the data]. my requirement is, table view is having customer information with their city names. i need the city name in my form view's .htm
Both views are having same context node which are bounded via custom controller.
Could you help me out to solve this
With Regards
SRiNi

Hi,
this should be very simple as the context nodes are defined as page attributes on your .htm page.
Example:
Your Context node is named /TEST/.
In your .htm page you can access it by:
<%
data:
  lr_property type ref to if_bol_bo_property_access.
  lr_property = /test/->collection_wrapper->get_current( ).
%>
EDIT:
In case there is no page attribute, you can use the SET_MODELS method in the view implementation class to set a variable. Be sure to create the variable you want to set on the .htm page in the page attributes first.
cheers Carsten
Edited by: Carsten Kasper on Oct 21, 2008 2:44 PM

Similar Messages

  • [CS3] How to get the geometry data relative to the page?

    Hello!
    I have the inner geometry data (IGeometry) of a page item.
    There is a routine ::TransformInnerPointToPasteboard() which calculates the points relative to the origin of the pasteboard.
    But I want the geometry data relative to the page's origin, which is to top-left of the page
    Can anybody help me?
    Thanks,
    Alois Blaimer

    Hi Alois,<br /><br />I would make it like that..<br /><br />//just get page from an item (Splineitem, IGraphicframe...)<br />InterfacePtr<IGeometry> itemGeo ( mItemRef, UseDefaultIID() );<br />InterfacePtr<IHierarchy> itemHier ( mItemRef, UseDefaultIID() );<br />mPageRef = UIDRef( mDB, ::GetOwnerPageUID(itemHier) );<br /><br />//get position of item and page in pasteboard coordinates..     <br />PMRect fItemRect = inGetStrokeBounds ( mItemRef  );<br />PMRect fPageRect = inGetStrokeBounds ( mPageRef  );<br />          <br />//just calculate what you want<br />PMRect fRelItemRect;<br />fRelItemRect.Top()   = fItemRect.Top()  - fPageRect.Top();<br />fRelItemRect.Left()  = fItemRect.Left() - fPageRect.Left();<br /><br />PMRect inGetStrokeBound ( UIDRef& ref ) {<br />PMRect itemRect = Utils<Facade::IGeometryFacade>()->GetItemBounds( ref,Transform::PasteboardCoordinates(), Geometry::PathBounds());<br />return itemRect;<br />}<br /><br />Greetings<br /><br />Michael Bauder

  • How to get the current date using HTMLB JSP page

    Hi All, I developed an iview with several fields using PDK, I would like to know how can I include for a date field a dynamic value witch in this case is the current date.
    <hbj:inputField
    id="Date"
    type="date"
    maxlength="10"
    showHelp="TRUE"
    required="TRUE"
    value="???"
    />
    Thanks in advance
    Alexis

    Hi Alexis ,
    u can use the setDate("3.12.2003") function to set date for this input field.
    u just change the id = Date , because in jave we have Date class. rename it to another name..
    suppose id = systemDate
    <%
    Format formater = new SimpleDateFormat("dd.MM.yyyy");
    Date syDatum = new Date();
    %>
    then
    put
        systemDate.setDate(formater.format(syDatum));
    this will set the date .....
                        Regards
                        Kishor Gopinathan

  • Why we need to conver Context  Node data into XML file----Export to Excel

    Hi All,
    Let me clarify my dought........today i have gone through the concept of  "Exporting Context Data Using the Webdynpro Binary cache" in SAP Online Help.
    From the SAP Online Help pdf document, i have found that, the context node data has been converted first in to XML file,after that file had been stored in the web dynpor binary cache...bla....bla.........
    Here my qtn is why they had converted context node data into XML file. With out doing that can not we export context node data to excel file..?
    Regards
    Seshu
    Edited by: Sesshanna D on Dec 19, 2007 7:25 AM

    Hi Sesshanna,
    it is not neccessary to do that but xml has the advantage, that it can be easily transformed into every output format that might occur in later project stages.
    If it's simply about blowing out some Excel, I suggest using an OSS library such as jexcelAPI or Jakarta POI and building the Excel how you need it.
    regards,
    Christian

  • How to get  the actual data in ALV report

    I am doing some upgradation work   in that i am using Submit  & And return and  also i am using some function modules like LIST FROM MEMORY , LIST TO TXT wnd WRITE LIST , it gives output in normal list format , But i need to print in ALV report .
    With the use of set table for 1st display i got the  ALV report   but not with actual data, (some junk value is showing) , So can any 1 suggest me how to get  the  actual data in ALV report, With the use of  Any Function Module or with Coding,
    with regards,

    Hi Saravana
    I am sure you must be getting the values in tables of table parameters from every FM.
    consolidate the values from tables of all FMs in one table and built ALV for that table only.
    I hope this way you can show the actual data in ALV.
    thanks
    Lalit

  • How to get current row data in table control

    Hi , expert ,
       I am professional in oracle ,  but  now I am a new guy in SAP ABAP .
    I  have a question in UI
    How to get current row data and click pushbutton  in table control  to open next screen ?
    I want to get the current data and open next screen to carry out detail detail .
    Thansk for all your suggestion .

    GET CURSOR LINE SY-CUROW .
      READ TABLE internal_table index SY-CUROW.

  • How to get each node in tree?

    how to get each node in tree?
    Message was edited by:
    NikisinProblem

    how to get each node in tree?
    Since (as far as I know) treeNode is an interface, the real question to me is how are you implementing your treeNodes? Are you overriding the toString() method?

  • How to get last Build date of a dll in the real time target

    Info On My Project    
       I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...  
    I am facing some problems while checking Build date of my Application file( .dll)
    I have tried to use GetFileDate API. But it is not supporting for realtime Target..
    So i have tried __DATE__ macro.. That also having some problems..
    How to get last Build date of a dll from the real time target  ??
    Please Help to solve this....
    Thanks
    Vaishakh A  K

    Please reply if any one have suggestion...

  • I loos my APPLE ID, I have a new one, how can get access to data stored in the old one?

    I loos my APPLE ID, Now I have a new one, how can get access to data stored in the old one?

    Do you have the email & password of the old Apple ID?

  • How to get the "current date" in the BEx?

    Hi all,
    I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
    Thanks

    1. Create a  New Formula in Key Figures structure
    2. Give tech name and description and Select "New variable" option
    3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
    4. in next screene  select the date characteristic that represents the first date to use in the calculation (From Date)
    5. In the next  screen select Key in the Replace Variable with field. Leave all the other options as they are
    6. In the next Currencies and Units screen select Date as the Dimension ID.
    6. Save variable
    repeate the Above steps to create another variable (To Date)
    and now you can use these two new replacement path variables in your new formula.
    Dev

  • How to get the current date in a workflow

    Hey,
    Can anyone tell me how to get the current date while in a workflow?
    Thanks in advance.

    Here is how we did it, hope it helps
    <defvar name='locCalendar'>
    <new class='java.util.GregorianCalendar'/>
    </defvar>
    <defvar name='dateFormat'>
    <new class='java.text.SimpleDateFormat'>
              <s>MM/dd/yyyy</s>
         </new>
    </defvar>
    <defvar name='formatedDate'>
         <invoke name='getTime'>
    <ref>locCalendar</ref>
    </invoke>
    </defvar>
    <invoke name='format'>
    <ref>dateFormat</ref>
    <ref>formatedDate</ref>
    </invoke>

  • How to get the current date ? in the form of dd/mm/yyyy?

    Hi all,
    As getDate( ), getMonth( ), and getYear( ) is depricated, how to get the current date or System date, month and year ? please help ??
    Regards
    Ashvini

    HI,
    Than u for the reply. But i am getting one error.
    as u said, I tried to do so.........
    but, i am getting one error.
    code
    Calendar cald=(Calendar.getInstance.getTime());
    out.println(cald);
    error message
    validate$jsp.java:86: Attempt to reference method getInstance in class java.util.Calendar as an instance variable.
    Calendar cald=(Calendar.getInstance.getTime());
    ^
    1 error
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
    Pls help
    Regards,
    Ashvini

  • How to get the manufacturing date of iphone 5s?

    how to get the manufacturing date of iphone 5s?
    thanks

    Enter your serial number here:
    www.appleserialnumberinfo.com/Desktop/index.php
    To find your serial number:
    Settings > General > About > Serial Number

  • How to get backed up data in iphone3gs when the phone is disabled

    how to get backed up data in iphone3gs when the phone is disabled

    can someone help? this is shaking my trust in icloud backups.
    i am on iOS 6.1.

  • How to get the node id of the content shown from campaign

    Hi
    Can any one please tell how to get the node id of the content shown by the campaign
    in jsp
    Thanks

    One option is to define a custom ad renderer, which is registered with the proper mime-type.
    The campaign would run your renderer if the campaign retrieved a node with a binary of the proper registered mime-type.
    This allows you to insert yourself into the call chain for the node rendering. You can access the nodeID at that point (and do the typical rendering-- providing a URL for the ShowPropertyServlet)
    -Steve

Maybe you are looking for

  • WiFi Disconnect/Signal Loss

    I recently bought an Airport Extreme WiFi n router to replace my older D-Link router which suffered from disconnects. The Airport Extreme worked well for about 1 month without a glitch (and I haven't changed the settings) and all of a sudden I get Wi

  • The inevitable Bauerbill, Clyde, Packer or other AUR helpers thread

    Some new titans among the many AUR helpers. Hard to choose between them, if necessary at all ;-) The big newcomers: http://bbs.archlinux.org/viewtopic.php?id=91860 http://bbs.archlinux.org/viewtopic.php?id=88247 http://bbs.archlinux.org/viewtopic.php

  • Upgrade to EHP1

    Hello, I do not know if I'm right here. Here was an upgrade done on EHP1 and there was "Deploy Service" with the old version one point. Which is not available anymore. Does anyone here from what you have done? Thanks.

  • Problems with Accordion styling

    I'm quite new to the use of both Spry and CSS but fancied having ago at setting up the accordion widget for my company's revamped website - www.update.dcprint.co.uk This works fine in IE7 Beta3 (I know, but couldn't resist having a look at the app) b

  • Jdk1.5 compile error

    Hello, I am trying to install jdk1.5 and compile sample files, but after I installed jdk1.5 and set up classpath and path(this setting works in jdk1.4.2_06), I compile sample code Hello.java, I got the following error, D:\Example\javac Hello.java err