Help needed in writing custom views for rendering new HTML tags

Hi
I am in the process of making a sort of HTML editor using the JEditorKit and all,now i need to write a view which will display bi-directional text(text in reverse order),well i am not being able to get to the test at all,i don't know how to get to the text in the element being supplied to my ViewFactory.
Anyone who knows anything about what i am talking here please help me,i am open to any suggestion,anything,i am in a real mess here,please help

Hi,
You dont need any coding to set the changed value back to the context attribute.
Since you have mapped the context attribute in the DisplayView and EditView to a context attribute of component controller. So after viewing the name in your DisplayView when you navigate to EditView onActionChange,you can change the value.When you cahnge the value and submit the new value that is entered is update across the component controller and DisplayView context.
To see this create a action onActionSubmit in EditView and navigate to the DisplayView, you will see the updated value.
In webdynpro framework when the value of a context attribute is changed, then the value gets updated across all views to which the context attribute is mapped.

Similar Messages

  • Do I need to create a view for this?

    Hi Ihave got 2 tables emp and project
    In emp tabe:
    emp_no
    family name
    given name
    In porgect table:
    emp_no
    status(assigned,unassigned)
    start_date
    end_date
    emp_no Family_name given_name
    1 Smith John
    In project table same employee can have many assigement eg
    emp_no status start_date end_date
    1 assigned 01-may-08 01-july-08
    1 assigned 01-sep-08 01-july-09
    1 unassigned 01-july-09 01-oct-09
    In the form:
    there are 2 querable fields "project ends between field1(date) and field2(date)" which is used to
    retrive records which have end date between field1 and field2.
    The following fields are needed to get from database:
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Requirements:
    1. project.start_date and project.end_date must be the latest project_end_date for the same emp
    so in the above sample date
    2. No. of time assigned is a count of total of number records which have status='assign'
    So for the given sample data the record expected after query would be(field1=01-jun-08 field2=02-july-09)
    emp.family_name emp.given_name project.start_date project.end_date No.of time assigned
    Smith John 01-sep-08 01-july-09 2
    What is the best approach to get:
    1 The lastest project(latest end_date) for the emp
    2. get No.of time assigned.
    Do I need to create a view for this? If yes, any sample sql code this this?
    Thanks for your help

    Hi W1zard,
    Thanks for your reply. Could you clarify the following points for me:
    1.) you could create a master block basing on your emp table and a detail block basing on your project table with the relation over emp_no. set the default_where clause of your detail block programmatically using
    set_block_property('project', default_where, 'status = ''assigned'' and <your_date_criteria>');
    Q1: where I pit this code? in pre-query trigger in detail block?
    2.) Of course you could create a view to join both of your tables if you don't want to use master detail blocks; Also do the join over emp_no
    create or replace force view v_emp as
    select emp.family_name, emp.given_name, project.start_date, project.end_date
    from emp, project
    where emp.emp_no = project.emp_no
    Q2 As I mentioned before, there are multipal entries for the same emp in project table and we only need the maching record from project table which has latest end_date. So I think I need something like
    max(project.end_date) somewhere in create view to make sure only one record for one employee.
    Also is there possible to include the no. of assigned field(select count(*) from project where status='assigned' and emp=emp_no) into the view as well?
    Q3 All the fields mentioned above are diaplay-only. So Can I create a control block which has all the fields from emp and project. Then populate them with my sql. The question is
    where I put this customerised sql so when user click excute query. My sql will run and display one the form?
    REally appreciated your help!
    Michael

  • Outlook 2013 (how to share Custom "Views" for shared Contacts/Journals)

    Environment:  Office 2013 Client (Office 365 E3)
    I have shared Contacts and Journals with other users.
    I have a custom View for each, how do I share the "View"?

    Hi,
    Custom view won't be shared when you share your Contacts or Journals. You'll need to copy the views you want to share to a pst-file and then share the pst file to others.
    To do this, please refer to the following link and look at the "Method 3: Copy views to a Views_backup.pst" section:
    http://www.outlook-tips.net/how-to/copy-outlook-custom-views/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without
    notice. Microsoft does not guarantee the accuracy of this information.
    You can also refer to the video tutorial at the end of the article for detailed steps.
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • I need create a custom control for visualization HTML

    Hi guys,
      I need create a custom control for HTML files visualization on SAPGUI JAVA. I created a sample program and perfectly run on SAPGUI Windows.
    Thanks.
    Regards.
    Jose Antonio Campos.

    Hi,
    Just as a quick start
    http://gumbo.flashhub.net/sizer/  (view source enabled).
    this uses a skin to make a titlewindow resizable, its not about the skin as much as giving you a starting point for resizing code.
    if you look into the skin you will see these functions
    protected function sizer_mouseDownHandler(event:MouseEvent):void
    OldX=event.stageX;
    OldY=event.stageY;
    systemManager.addEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.addEventListener(MouseEvent.MOUSE_UP,endResize);
    protected function endResize(event:MouseEvent):void
    systemManager.removeEventListener(MouseEvent.MOUSE_MOVE,startResize);
    systemManager.removeEventListener(MouseEvent.MOUSE_UP,endResize);
    private function startResize(event:MouseEvent): void
    hostComponent.width -= OldX-event.stageX;
    hostComponent.height -= OldY-event.stageY;
    OldX=event.stageX;
    OldY=event.stageY;
    The idea is to have a hit area on your custom component (a corner, or all corners). You capture the mouseposition when you mousedown then in the mouse move eventlistener you update the object size with the difference between current X and Y from initial X and Y.
    Hope this gets you started.
    David

  • HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help

    HELP NEEDED!! I bought a brand new mac air 11 inch a month ago, and for three days now I can't switch it on.when I do, i can hear the machine is on, but nothing else happens. (yes it is charged). please help.
    I bought it in South Africa and I am currently in Israel.

    thank you for the response.its not working, tried that. i can switch the machine on and off, can hear the machine when i hold it to my ear. but nothing works, not the screen, not the sound, nothing.

  • In order to take advantage of the iPhone trade in, do I need to have met my upgrade eldigbility date, or do I just need to re-sign up for a new 2 year plan with the new iPhone 6?

    In order to take advantage of the iPhone trade in, do I need to have met my upgrade eldigbility date, or do I just need to re-sign up for a new 2 year plan with the new iPhone 6?

    thanks, a HUGE suggestion for you:  Please add that to the restrictions of the trade-in details online, it mentions that nowhere and is VERY deceptive.  Since at least 90% of 5c and 5s users are under a 2 year contract and both phones have been out just a year, there will be a majority of bitter customers who fell for the ad and will be taking advantage of the buy out options the other carriers are offering.

  • Adobe needs to develop an api for communicating with HTML Overlays & Indesign Objects

    I'm a front-end developer who has been assigned the task of developing one of our client's DPS every month. While I praise Adobe for saving a dying a industry and giving non-developers simple GUI controls, they need to develop an api for communicating from HTML Overlays to Indesign MSOs and other objects.
    I've had to do some intense animations/pages; which I in turn simply developed all in HTML5 and did an overlay. The time put into those pages could have been greatly reduced if their was a proper API in place to trigger different MSO and events. Is anybody at Adobe working on this? As DPS matures, and more developers are tasked with making folios it's imperative we have a proper way way to develop.

    We had a page for embedded movies in a lightbox; the client said customers were complaining that the folios were too large and took too long to download. So we switched to youtube streaming page, but they wanted a poster and autoplay enabled. If you have ever programmed with mobile video, you'll know devices are extremely difficult to manipulate.
    I had to do an html overlay with a bunch of transparent divs for hotspots and buttons. If I could have told Indesign to move different objects layer orders or go to a different MSO it would have saved me hours.
    Doesn't DPS support localstorage? Couldn't you guys whip up a little api to trigger events via localstorage?
    Off topic, another request:
    - enable the safari webkit inspector for debugging connected ipads with folios that have html overlays; you guys don't fully support HTML5 or certain js events and it's extremely annoying and difficult to debug. 

  • If my iphone 4s was unlocked by AT&T, but I need to use my warranty for a new iphone. Do I need to reunlock the new iphone? or will apple give me an unlocked iphone?

    If my iphone 4s was unlocked by AT&T, but I need to use my warranty for a new iphone. Do I need to reunlock the new iphone? or will apple give me an unlocked iphone?

    If your phone is officially unlocked, you will get an officially unlocked iPhone if yours is replaced under warranty. Apple maintains a data base of officially unlocked iPhones & can verify whether your phone is officially unlocked or not. To be safe, point this out to the genius bar, if you go to an Apple store or whoever you talk to, if dealing with AppleCare.

  • Do I need to buy Pages again for my new ipad 2?

    I have Pages on my Macbook Pro. Do I need to buy it again for my new ipad 2? I can't seem to find a way of accessing it from the ipad.

    Yes, you will need to buy the app version from the app store if you want to use it on the iPad - the version on your Mac (OS X) is not compatible with the iPad (iOS), they are different operating systems
    Pages for iPad : http://itunes.apple.com/gb/app/pages/id361309726?mt=8

  • Do i need to buy external microphone for my new hp desktop model p6821pb for others to hear me?

    Do i need to buy external microphone for my new HP Desktop model p6821pb ?
    I can hear when others speak on my Skype Call but they cannot hear me.
    I thought new models don't need external

    Hi,
    Sorry to say, but you'll need to buy an external microphone - there is no internal hardware for this.
    Best regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Do I need a different SIM Card for the new iPhone?

    Do I need a different SIM Card for the new iPhone?

    The iPhone 5 will come with a new SIM Card in the iPhone ready for you to activate. If you want to make things a bit more difficult, you can cut a Micro SIM to the Nano Sim size with scissors. Of if you have any problems with your iPhone 5 and its SIM Card you can get a new one from your Carrier. But, again the new iPhone 5 will come with a new one for you.

  • Converter for converting all HTML tags to JSF tags

    hai all,
    i am new to JSF. i need a suggestions to convert all my HTML pages to JSF pages bcoz i was already created more pages in HTML and now i want to convert all the pages to JSF. can u give any suggestion plz post it here or send me a mail to [email protected]
    thanks in advance,
    regards,
    V.Sabarish

    hi roman,
    thanks for ur reply. it converts the file but the links r not converting....so can u suggest me another way for converting a HTML tags to JSF tags.

  • Need to create maintenance view for a custom infotype

    A custom infotype 90XX is created. The data cannot be modified or created through PA30 in this infotype. Through PA 40 actions only we can create/change the record/data. We have created some 1000 records in it. Now can we create a maintenance view for the infotype so that we can create, delete or change the data in the infotype as and when we want.

    Hi,
    pls chk dat u have maintained the 'Infotype Charecteristics' and 'Technical Attributes' correctly.
    thanks,
    teja.

  • Help needed in writing installers for swing application

    Hi ,
    I want to write an installer for one of our home grown profiler tool. I need to write the installer for different platforms such as windows,linux,solaris,HP-UX.
    Does anybody have any idea of how to go ahead in writing installations. Share if there is any good links such as tutorials as well is thr any opensource tool (similar to installsheild) to write installers . As well following is the tentative algorithm for my install sheild
    1. Create a home dir for the tool and put all the application files in tht.
    2. Installing a 3rd party jar and make a home for it.
    3. Option for user to select the features(i hv 2 features. user can either select both or select individual feature) to be installed.
    4. Select the appserver home if any. On selection i hv to update the classpath in the startup batch file for the application(This is the toughest step i beleive bcoz each appserver have different folder structures and different startup batch files).

    Tried obtaining the output using SQL and the result is as follows:
    SQL> WITH T AS
      2  (
      3  SELECT 1 COL1 FROM DUAL
      4  UNION
      5  SELECT 2 COL1 FROM DUAL
      6  UNION
      7  SELECT 3 COL1 FROM DUAL
      8  UNION
      9  SELECT 4 COL1 FROM DUAL
    10  UNION
    11  SELECT 5 COL1 FROM DUAL
    12  UNION
    13  SELECT 8 COL1 FROM DUAL
    14  UNION
    15  SELECT 9 COL1 FROM DUAL
    16  UNION
    17  SELECT 10 COL1 FROM DUAL
    18  UNION
    19  SELECT 13 COL1 FROM DUAL
    20  UNION
    21  SELECT 14 COL1 FROM DUAL
    22  UNION
    23  SELECT 15 COL1 FROM DUAL
    24  UNION
    25  SELECT 16 COL1 FROM DUAL
    26  UNION
    27  SELECT 23 COL1 FROM DUAL
    28  UNION
    29  SELECT 24 COL1 FROM DUAL
    30  )
    31  SELECT OUTPUT FROM
    32  (
    33  SELECT DECODE(COL3,NULL,COL1, COL2)  || '-' || LEAD(DECODE(COL3,NULL,COL3, COL1)) OVER (ORDER BY DECODE(COL3,NULL,COL1, COL2)) OUTPUT  FROM
    34  (
    35  SELECT COL1, LEAD(COL1) OVER (ORDER BY COL1) COL2, LAG(COL1) OVER (ORDER BY COL1) COL3 FROM T
    36  )
    37  WHERE
    38  (COL2 - COL1 > 1 OR COL2 IS NULL OR COL3 IS NULL)
    39  )
    40  WHERE OUTPUT != '-';
    OUTPUT                                                                         
    1-5                                                                            
    8-10                                                                           
    13-16                                                                          
    23-24

  • Help needed in Service Ticket view version CRM 2007

    Hi,
    We have a requirement to replace the Service Level Agreements with Location details screen (custom defined) in the Service Ticket View. I did this in 5.0 version,but couldn’t replicate it in the CRM 2007
    version.
    Here is how I proceeded in the new version.
    Instead of creating a new view, I approached the Adding required
    context node approach and populated the fields that we need.
    1. I enhanced the component ICCMP_BTCTR
    2. I added Context node BTActivityH ( I did not link it to any CutomController in the wizard, but defined dependency to Higher LevelContext node BTAdminH, with BOL relation, BTHeaderActivityExt, and
    activated the check box “Always Create Instance” and let the the wizard to finish off.
    3. Then using the UI Config tool, I copied the standard configuration to my custom config for changes, I removed all the 3 fields that are there in the standard configuration, and replaced with the attributes
    of BTActivityH using UI Config tool in the component work bench. All fields are Input ready fields (not set for Display only).
    4. When I open the Service Ticket view to access these fields, in the UI of Service Ticket, I realized that they are display only fields.
    5. Then I created the attributes, ( to access GET_I_S_*) methods of the attributes, and I externally set rv_disabled = ‘FALSE’ in the metod (say GET_I_S_CITY)
    6. Now I am able to input values for those fields, but still I am not able to save those entries that I entered in there.
    I guess I am missing some thing in the wizard, like linking custom
    controller or dependency relations.
    Is it mandatory for me to bound the context node to component
    controller Node (BTActivityH). If so how can I bound it.
    Please advice me.
    Thanks and regards,
    Sreekanth

    Hello Sreekanth,
    I think that the fields are read-only and not saved because your context node is not bound to a custom controller. (Even though your higher level node, BTAminH, is probably bound to a CuCo)
    The code to perform the CuCo binding is mostly coded in the CREATE_BTACTIVITYH (controller class->typed_context->create_btactivityh or check create_context_nodes to see how the method is called)
    like this:
      owner->do_context_node_binding( iv_controller_type = cl_bsp_wd_controller=>co_type_custom
                                      iv_name            =  <name of the CuCo>"#EC NOTEXT
                                      iv_target_node_name = '<the context node of the CuCo to bind to>'
                                      iv_node_2_bind = <your context node> ).
    Now, save yourself a headache and a lot of debugging time and just create a new context node through the wizard again, this is much easier than trying to 'fix' it yourself! Once you have created your new context node you can delete the old one by deleting the attribute in the typed_context class.
    Hope this helps!
    Reward points if useful!
    Kind regards,
    Joost

Maybe you are looking for

  • "Insert Boot Disk and press any key"

    Hey guys, I tried to use bootcamp to install windows, and it looks like i messed up big time. Using a late 2013 iMac with a USB disk drive, Windows 7 Home 64 bit on DVD, and two external HDs. I consulted a bootcamp guide. Reformatted the externals to

  • Is it unusual to not receive a confirmation email from Apple when applying for a retail position?

    I wasn't sure where to post this question and I was just wondering. Regards

  • No disks found during installation

    I have the HP Proliant ML 370 G4 server with Smart Array 6400 Controller with 3 Logical drives (RAID1) configured. And I'm trying to install Solaris 10 on the server. During an installation proccess (Interactive mode) after "choosing the media from w

  • Unicode support for QT text tracks?

    Does Quicktime NOT support unicode text? Is it not possible to create a text track with Chinese, Korean or other subtitles? I have a unicode file, but the text gets garbled when I try to open it in QT Pro. I have tried the language descriptor {langua

  • What is Screeen Painter ?

    Hi Experts, Thanks for your instance and useful responses for my queries. This shows your good atitude of sharing your knowledge. I gotta query today, What is Screen Painter ? Is Dialog Programming similar to Screen Painter ? If so how you can say DY