Query regarding screen capture in webdynpro

Hi
i needed to use the java.awt.Robot class to perform a screen capture. This is basically used to capture signature which is done on a applet. But hwile i am using it gives me java.awt.headless exception which basically means that i cannot use display devices or certain other features. is there any way get past this.
Is there any way i can do a screen capture using webdynpro.
I have few more doubts regarding a application that i need to make. If i am not able to get a solution for this problem i would explain the scenario and probably someone could help me with solution for the same
thanks
regards
Srikumar V

The problem is that the iframe control is not really supported and should not be used anymore i think.
But anyways: Since there is actually no out of the box solution, the steps you would hav to go are as follows:
1. Get Access to the image data (client side)
I suppose the paint method of one of the AWT/Swing components is overwritten to draw the signature with a pointig device (eg mouse/touch screen)
in the method public void paint(Graphics g) you have access to the component's Graphics object.
When the user presses a button in that applet you need to get the latest graphics object of the component and get the bitmap data out of it.
This is basically the same as using the java robot screenshot, just more elegant.
But it is important of course, that the navigation to the new view is somehow triggered by the applet so that it can send the request to the servlet before the applet is destroyed.
2. Send the data to the Server
I think the best would be to write a servlet to accept the bitmap data from the applet and store it to a database. When the File is uploaded you have to navigate to the next view (using portal navigation or javascript to reload the parent frame)
Then you need to query that database from Webdynpro to get the file.
3. Now you would have to use a library like iText to create a PDF file with your image in it.
This is all not really easy and I can only describe some rough ideas. I cannot think of an easier way to do it right now since client side coding is not supported by webdynpro.

Similar Messages

  • Query regarding screen exits

    Hi ppl,
    I am looking for a screen exit for tcode MSC3n.
    Using SMOD, I found the following enhancements:
    BATCHCHK
    MBCFC010
    SAPLCHVW
    SAPLMHD1
    SAPLV01D
    SAPLV01P
    SAPLV01Z
    SAPLV1ZE
    SAPLV1ZN
    But, all these have function exits. There was no screen exit specifically mentioned in any of these enhancements.
    Does it mean that there is no screen exit or will these function exits be useful?
    Please help.
    Regards,
    David.

    Hi,
    My requirement is to remove 2 fields from a subscreen of the tcode MSC3n and replace with 2 custom fields which I have appended in the standard database table. All the fields are from the same database table.
    Thanks,
    David.
    Edited by: David D on Aug 28, 2009 6:59 AM

  • Query regarding screen designing

    Hi Experts,
       I am designing a page using  sap  webdynpro  java in which page header should contain 5 buttons as follows.
    Home  Porders  Corders   Inventory    GReciepts
    By clicking GReciepts i should get  4 buttons As follows.
    OFSummery   GReciept   GRDetailList    CBSummery.
    in OFSummery I have to design a FORM.
    which property is required from rootuielement container to reech my requirement.Please help me in this regard.
    thank's@Regard's,
    Prashanth

    For this,
    1. First, in the context create an attribute of type Visibility.
    Steps for this:
    Create a context attribue
    In properties of the attribute you see the property 'type'.
    To the far right of this is a button with three dots, click it, a window pops up.
    Select 'Dictionary Simple Type'.
    Expand 'com.sap.ide.webdynpro.uielementdefinitions'.
    Select 'Visibility'
    Click 'OK'
    2. Bind this attribute to the Visible property of the container.
    3. On the 'Onclick' action of the header row button, set the visibility value of the container to Visible.
    wdContext.current<node>Element().set<Visibilityattribut>(WDVisibility.VISIBLE);
    4.in the onInit(), write:
    wdContext.current<node>Element().set<Visibilityattribut>(WDVisibility.NONE);
    Thanks and Regards,
    Shyam.

  • How do I get a screen capture in Windows on MacBook?

    I'm a new guy to Mac/Mountain Lion, but not to computers, so this question may be a bit dicey.
    I have used Gadwin PrintScreen for years on Microsoft Machines. During Setup, I am allowed to use Ctrl+Printscreen but now I am using, only occasionally, Windows 7 x64 on a partition on my MacBook Pro/Retina. Considering that there is no Printscreen key on the keyboard, I can no longer use the configuration I am accustomed to in the Windows environment on my lovely, shiny Mac. Only combinations ofCtrl/Alt and F keys are allowed. I get "Can't use that key. Already assigned to, etc."
    So then, my query is this, on the Windows side, what keyboard combo will allow me to get a full screen capture? I've tried everything and combed the Apple community to no avail. If there is no keyboard combination, what app can I use that will allow me to do so in a Windows environment on a MacBook Pro/Retina. Just a month old.
    I know how to execute this on the Mountain Lion side, but that key combination doesn't cut it on the Windows side.
    In closing, I hope the solution is an app download to allow me to choose a configuration.
    Thanks for reading,
    Kelly J.

    Start > All Programs > Accesories > Snipping Tool > New > Full Screen Snip
    Sorry I don't know of any key combinations that will do the same thing.

  • How to run the query in  screen painter

    i am using the patch 36 in business one so pls give information  about 
       how to run the query in  screen painter 
    regard
      sandip adhav

    Hope u have reached Screen painter interface,
    1. Click 'Add Grid' from tool bar.
    2. Go to 'Collections' tab in 'Properties' window.
    3. Choose 'Data Tables' from the Drop down list.
    4. Click 'New' found at the bottom of the Properties Window(same window)
    5. U'll find the place to insert ur query.
    6. U can rename the table name from 'DT_0'
    7. Choose type as 'Query'
    8. Clear content from box 'Query'
    9. Enter ur query there. Dont forget to Click 'SET'
    10. Go to Preview option from tool bar.
    now ur query will be displayed as table format.
    Note: First try with simple query b4 going for linking option.
    Regards,
    Dhana.

  • Article: Screen Conversion in WebDynpro for ABAP

    Hi all,
           I want to share with you my first article that i posted in SDN. Looking for your valuable comments...
    Click the below link to read by article. Thanks.
    <a href="http://sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/screen%20conversion%20in%20web%20dynpro%20abap.pdf">Screen Conversion in WebDynpro for ABAP</a>
    Some of the links in the article are not accessable from the article. The links are given below.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a282c952-0801-0010-1eb5-87953e036712">Getting Started with Web Dynpro for ABAP</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/30/f2156a26fb4b4d86c5b0ce9f86bfb3/content.htm">Wizard</a>
    [url=http://help.sap.com/saphelp_erp2005/helpdata/en/73/e5e6418b7eca17e10000000a155106/content.htm]Restrictions[/url]

    HI Hema,
    What i understood from u r query is u want 2 refrsh all ui elements data.
    u can read data from the respective nodes and clear those data.
    Example: I want to delete contents of an ui element on the screen( FULL_NAME ).
    create a buuton REFRESH  on the screen and assicn a action to that button.u wil get a method with that action.write this follwing code in tat method.
    method ONACTIONREFRESH_UI .
        DATA lo_nd_processedby TYPE REF TO if_wd_context_node.
        DATA lo_el_processedby TYPE REF TO if_wd_context_element.
        DATA ls_processedby TYPE wd_this->element_processedby.
        DATA lv_full_name LIKE ls_processedby-full_name.
      navigate from <CONTEXT> to <PROCESSEDBY> via lead selection
        lo_nd_processedby = wd_context->get_child_node( name = wd_this->wdctx_processedby ).
      get element via lead selection
        lo_el_processedby = lo_nd_processedby->get_element(  ).
      get single attribute
        lo_el_processedby->get_attribute(
          EXPORTING
            name =  `FULL_NAME`
          IMPORTING
            value = lv_full_name ).
    clear lv_full_name.
    CALL METHOD lo_el_processedby->set_attribute
      EXPORTING
        value  = lv_full_name
        name   = `FULL_NAME`
    endmethod.
    reward if it is use ful

  • Check box in SAP Query selection screen

    I want to keep 2 check box in SAP Query selection screen.
    could you please tell me any one.
    regards,
    kumar

    Hi Vijay,
    If these check boxes are the fields in the table you are using then you can do it in SQ01, otherwise you may required to make the changes in the standard code generated for that query.
    You can find the name of the generated program of the query when you execute the query.
    Reward points if useful.
    Regards,
    Atish

  • Query regarding the fields details in particular form for all the users in

    Dear All,
                  I have one query regarding the fields details in particular form for all the users in company.
    Let take an exapmle if i had created Purchase Order having fields in content tab as 1.Item No. 2.Quantity 3.Unit Proce   4.Total   5. Location.
    While Login in User manager i set these fields only for Purchase order , but when i login from other user and open the similar purchase order the defaults fields are also seen including  above 4 fieds .
    Now my question is how to set the User choice fiels for the particular form that are common to all users.
    Means whenever i login in any user and opens the same document the same fields should be seen....Thanksssss.........

    You have to login with each and every user and do the Form Settings of every forms, so that all the forms look same for all the users.
    This is a manual job and you have do do it with every user login.
    Alternately, you can try out this link that explains
    [How to Copy One Screen Layout to Another User|http://www.sbonotes.com/2008/03/how-to-copy-one-screen-layout-to.html]

  • Premier Pro CS4 and Camtasia imported screen capture

    I have a question from one of you professionals regarding Camtasia screen capture video imported to PP. I used several settings that was suggested in the posts in these forums and others and the quality of my video is still very bad. Please Help:
    I am making a four minute training video that includes some screen shots of software. The final video will be put on DVD and Flash for website.
    My capture settings of Camtasia are 1024 X 768. I used Tech smith codec and I used Logarith codec to produce the video in AVI from camtasia.
    I set my PC screen size to 1024 X 768 as well.
    My Premier Pro CS4 Setting HDV 1080i, 29.97 frame rate. 1440 X 1080 Frame size.
    I also used the following frame sizes DV NTSC, 29.97 frame rate. 720X480 frame size
    I also used MPEG2, HDTV 720p, 29.97High quality, 1280 X 720 frame rate
    None of the above settings worked. Please help
    Thank you

    This ARTICLE and the included links might be helpful. Be very sure to look at all of the replies by Jeff Bellune on using the TechSmith CODEC's from Camtasia. I think that he replied in most linked threads.
    Good luck,
    Hunt

  • Query Variable Screen

    Good day,
    Is it possible to remove or protect the "Check" option on a standard Web Query variable screen.
    Thanks

    Hi.
    As I know it is impossible.
    Regards.

  • BEx query selection screen takes long time to popup

    Hi,
    I have a query which is taking long time to popup the selection screen. I have tried in RSRT the generate report option, the generating report takes 45 to 60 mins. After the report is generated the query selection screen comes up in couple of seconds. The first time I run the query everything its fine but then for the second time the problem comes back again.
    The selection screen takes +/- 40 mins to comes up in RSRT and in the portal it times out.
    I have run the statistics of the query and according to the statistics report the query takes a  lot of time for the following component :
    OLAP: Query Gen.     2681,312682
    I have removed the query from the cache monitor and after that regenerate the report. But these steps didnu2019t solve my problem.
    I made two test queries, in one query I have made the CKFu2019s and RKFu2019s directly at the infoprovider, and dragged and dropped in the KF structure. In the other query I made the CKFu2019s and RKFu2019s in the query KF structure itself. The query where I have the CKFu2019s and RKFu2019s at the infoprovider that query times out, the other query where I put the CKFu2019s and RKFu2019s in the query KF structure doesn't has this performance problem.
    What I donu2019t know is why the query is failing when I use RKFu2019s and CKFu2019s from the infoprovider, the other query donu2019t have this problem.
    Please advise how to proceed.
    Thanks in advance,
    Arash

    Hi,
    Please check the following notes which should be useful.
    1387593 - Performance optimization for query change/generation
    1416737 - Performance optimization for query change/generation(2)
    1396485 - Performance optimization for query check/save
    Then please execute the SE38 report ANALYZE_RSZ_TABLES (see notes
    1472915, 1506560) and repair/correct the different tables to optmize
    the query definition tables.
    Regards,
    Amit

  • Screen capture in java ?

    i want to capture a Screen in java and save it as a video file now.
    later i want to make like video streaming software for lan or wan.
    means
    any one can see what going on that pc where this Screen capture java software was installed.
    so any help regarding this problem ?
    i want to make a software like www.gotomeeting.com
    Edited by: myharshdesigner on Dec 1, 2007 11:44 AM

    So what have you done so far and where are you stuck?
    See
    {color:0000ff}http://catb.org/~esr/faqs/smart-questions.html
    mindprod.com/jgloss/sscce.html
    http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
    http://www.codebeach.com/tutorials/screenshots-java.asp
    https://aptframework.dev.java.net/gooey/screenCapture.html{color}
    db

  • F4 search-help in infoset query selection-screen fields

    Hi all,
    I created an infoset, and it's corresponding query, and now I need to associate F4 search-help in two of the selection-screen fields. Since they don't have any reference field associated (they are SAP standard table fields), there are no possible values available to select.
    How can I do this?
    I have already tried to use the "AT SELECTION-SCREEN OUTPUT" in the infoset, but I'm not able to do that. When I try to use the select-options generated by the query (SP$00013 and SP$00014) I have a syntax error with "Field not known".
    Can you help me? I never done this before, so I really don't have a guess.
    Thanks in advance.
    Beste regards,
    Sónia Gonçalves

    Hi all,
    I have found thread  that helped me a lot in this issue.
    I just have one more doubt: I created the selection criterion and I can already see it in the query selection-screen, but it's appearing in the top of the selection-screen, in a different area called "General data selections".
    Isn't it possible to include it in the "Report-specific selctions"?
    Thanks in advance.
    Best regards,
    Sónia Gonçalves

  • Query Selection screen field validatoin

    I am testing a query using the RSRT2 transaction and have a query selection screen whose fields i want to create custom validations for. ( which should trigger when check or execute is pressed )
    How can this be achieved ?
    I tried looking for exits but did not find a relevant one.
    Thanks in advance.

    Hello,
    You need to write a routine in SMOD for selection screen validations.
    It will come in i_step = 3. please refer foll code as example:
    The code example is to check whether date is less than or equal to current date. If user enters future date it pop ups saying enter date less than or equal to current date.
    DATA:  LI_VAR like rrrangeexit,
           wa_t_var_range like LI_VAR,
           count type i value 0.
    IF i_s_rkb1d-infocube EQ 'CUBE1' or
       i_s_rkb1d-infocube EQ 'CUBE2'.
    Check whether only one of date variable is entered in variable screen.
    IF I_STEP = 3.
        Read table i_t_var_range into wa_t_var_range with key vnam = 'VARDATE'.
          if wa_t_var_range-low > sy-datum.
            CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
              EXPORTING
                I_CLASS  = 'RSBBS'
                I_TYPE   = 'E'
                I_NUMBER = '000'
                I_MSGV1  = 'Enter date less than or equal to current date'.
            raise again.
          endif.
    ENDIF.
    ENDIF.
    Regards,
    Shashank

  • Query Selection Screen restriction

    Hello All,
    In my query selection screen, i have date, month and week as selection parameters. Now my requirement is that user should select only one of them. If he selects more than one ie combination of two or all three, than query should not show any data.
    Can this be achieved? If yes how.
    Regds,
    Shashank

    Hi,
    You can try out, customer exit with I_STEP = 3.
    using which a exception will be raised if user enters value for more than one variable.
    Hope it helps......
    Regards,
    Umesh.

Maybe you are looking for