How to Create Pop up window and assign values to the table in it

Hi All,
  I have a code which checks for duplicate value in the database and displays that duplicate record. I want to put the duplicate record value in a table of a popup window. Can you please tell me how do i acheive this?
I tried the below code for creating a popup but most of the methods used here are deprecated. Please help
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
"MyWindowName");
// create the Window
IWDWindow window = wdComponentAPI.getWindowManager().createWindow(windowInfo, true);
window.setWindowPosition(WDWindowPos.CENTER);
window.setTitle("WindowTitle");
// Save WindowInstance in Context
wdContext.currentContextElement.setWindowInstance(window);
// and show the window
window.open();
Regards
Suresh

Hi Suresh,
"createModalWindow" is not a depricated method.
Check this code.
IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows(
          "SalesAreaWindow");
//             create the Window
          IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);
          window.setWindowPosition(WDWindowPos.CENTER);
          window.setTitle("Sales Window");
          window.setWindowSize(100,100);
//             Save WindowInstance in Context
          wdContext.currentContextElement().setWindowInstance(window);
//             and show the window
          window.show();
"WindowInstance" is the context attribute of type "com.sap.tc.webdynpro.services.session.api.IWDWindow"
Re: opening a new window on lead select in a table!!!
Regards,
Mithu

Similar Messages

  • How to create authority check object and assign to  ztcode which is of modu

    Dear ,
             how to create authority check object and assign to  ztcode which is of custom module pool program.its urgent kindly help points rewarded.

    Manoj,
    You can check with your Basis team to create authorisation object and assigining tcodes to the user profiles.
    K.Kiran.

  • How to create a moveable holiday and assign it to a Holiday Calendar?

    Hi Experts,
    How to create a moveable holiday and assign it to a Holiday Calendar?
    Regards,
    Tomesh

    Hi Tomesh,
    Floating Holidays are created for holidays for which the dates are not decided for the years ahead or dates may changes each year or when a unusual holiday is just introducted for one year.
    1.Use transaction SCAL or use the IMG path to the holiday calender.
    2.Create a new holiday and select the option " is a movable holiday".
    3.Fill in the " public holiday attribute tab" and hit insert date.
    4.Fill in the year, month and date for the floating holiday or you could do multiple years at the same time if dates are know and hit create.
    5. The new public holiday is created.
    6.Assign the new holiday to the holiday calender, while saving you will get a message that " an irregular public holiday is created and being save hit ok. This message will appear in cases when the holiday calender validity and the validity of the floating holiday are matching.
    Generate the work schedules and check if th holiday appear in the work schedule.
    Award point if useful.
    Thanks
    Gita

  • How to create a new UoM and assigning it to characteristic?

    Hi,
    How to create a new UoM and assigning it to characteristic?
    i want to enter cost ( in rupees and laks) against a counter
    but for that counter charecteristic required and for taht charecteristic unit of measure Rs and Laks are not defined in the system.
    So please help me ....

    Hi,
    Use T Code CUNI
    Enter  Unit of Measurement as RS and Text as Ruppes
    Commercial and Technical Display is same as RS
    Numerator is 1
    Denominator 1
    Exponent 0
    Save
    Thanks
    Raj

  • How can i use both Windows and Mac os at the same time on my iMac

    How can i use both Windows and Mac os at the same time on my iMac

    You can use Parallels desktop or VM Fusion to run both operating systems at the same time. Both programs work well, but I personally perfer VM Fusion.

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to create pop-up window to search for items

    Hi,
    I want to create a pop-up window were the user will be able to search for an item and select it.
    How can I use a pop-up window in a portlet? Is there any api in the pdk for creating pop-up windows?
    Thanks

    Hi,
    Can you let me know why you are trying to use a popup window for searching?
    You can always add a search portlet - Basic,Advanced,Custom
    - which will give you the link to the respective searched items.
    I couldn't get a clear idea of your requirement.
    Thanks.

  • Create pop up window and close

    Hi Guys!
    Is it possible to create following: pop-up window is appeared on click tha button? If so - could you please provide detailed steps or an example?
    Many thanks for your help!

    this is simple :
    in your button submit put that
    if ( (name.value == "") ) {
    sym.$("popup").show();
    you can build any popup with edge

  • How to make validation in Bean and select value from another table

    I want to know how to select data from table in backing bean according to primary key i have
    the problem is that
    i have a table Employee_Salary contains Employee ids and their salary
    Empoloyee_Salary table
         Employee_ID      Number
         Employee_salary Number
    And Another table Called Employees
    Employees table
         Employee_ID     Number
         IsManager Varchar2 its value is [*Yes or NO*]
    and other columns that i don't care about this table
    i have on a jsff page an <af:table> this table is editable this is the Empoloyee_Salary table
    *i want to check before save or after insert if this employee is Manager [from Employees tabke(yes or no)] the salary*
    cannot be less that 100
    i want to know how to make this how to select the value from employees table according to the id i have in the employee_salary table how to make this and make this validation
    i have to select IsManager from Employees Table to see if this manager or no
    i want to know how to make this in a bean
    i use jdeveloper 11g
    and my project is ADF Fusion project
    and the page that have the Emplpyee_Salary table is JSFF
    thanks in advance

    You might want to write this code in a validator on the entity object if it should apply from every screen.
    If you want to access view objects from a backing bean the basics are here: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/bcservices.htm#sthref918

  • How to create a new Node and bind it to the wdContext root at run time

    Hi experts,
    Does anyone have sample code about 1) adding a new node to the root context, 2) give it a name and 3) referring to this newly created node with the conetxt path?
    Thanks

    Armin,
    I am trying to do this and keep getting erro about incompatible class:
    wdContext.getNodeInfo().addChild("DynamicNode",
                  mymodel.class,
                  true,
                  CMICardinality.ONE,
                  CMICardinality.ZERO_TO_ONE,
                  true,
                  wdContext.getContext().getStructure("com.my.structure") );
                  IWDNode node = wdContext.getChildNode("DynamicNode", 0);
                  IWDNodeElement e = node.createElement(an_instance_of mymodelObject());
                  node.addElement(e);
    Can I do it this way?

  • How to create DOM with node and its value

    <Order>
    <Manifest>
    <Item>
    <ID>101</ID>
    <NAME>Name one</NAME>
    <PRICE>$29.99</PRICE>
    </Item>
    </Manifest>
    </Order>
    i can write the code to create a DOM for this one.
    but how can i write the code to get the DOM as shown below
    <Order>
    <Manifest>
    <Item name="xxx">
    <ID>101</ID>
    <PRICE>$29.99</PRICE>
    </Item>
    </Manifest>
    </Order>

    Your question appears to be how to get an attribute applied to an element. Is that right?
    If so, use the setAttribute() method of the Element interface.

  • How to create a new Handling unit assigned to a Shipment?

    Hi,
    has anyone an experience how to create a new HU and assign it to a shipment (object type VEKP-VPOBJ = '04')?
    I need to create it via SAPConsole transaction. Originally I intended to use LM19 to create an unassigned HU and to assign it further on via some BAPI. But I could not find any suitable BAPI for the assignment. Standard transaction LM24, allows only to create a HU with an assignement to a delivery (outbound/inbound).
    Thank you
    Martin

    If you want to use function modules to accomplish this, here is 1 way.
    BAPI_HU_CREATE
    BAPI_TRANSACTION_COMMIT
    BAPI_HU_CHANGE_HEADER
    HU_POST
       lw_hproposal-hu_exid         = i_exidv.  "Ext HU# Optional
       lw_hproposal-hu_status_init = 'A'.          "Planned. -
       lw_hproposal-pack_mat   = i_pack_mat.       "Packaging Material
    *  This will create an UNASSIGNED HU object type 12.
       CALL FUNCTION 'BAPI_HU_CREATE'
         EXPORTING
           headerproposal = lw_hproposal
         IMPORTING
           huheader       = lw_huheader
           hukey          = lv_hukey
         TABLES
           itemsproposal  = li_iproposal
           return         = li_return.
    *  I could not assign to a shipment unless the commit was done.
    IF lv_hukey IS NOT INITIAL.
         CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' 
           EXPORTING
             wait   = 'X'
           IMPORTING
             return = lw_return.
         IF sy-subrc NE 0.
           APPEND lw_return TO et_return.
         ENDIF.
    *    Assign to a Shipment
         lw_huheader-pack_mat_object  = i_object.               "04-HU Type for Shipment
         lw_huheader-pack_mat_obj_key = i_obj_key.           "Shipment #   
         lw_huheader-dc_custom_mat    = i_dc_custom_mat."Sets the Dist Channel
         CALL FUNCTION 'BAPI_HU_CHANGE_HEADER'
           EXPORTING
             hukey     = lv_hukey
             huchanged = lw_huheader
           IMPORTING
             huheader  = e_huheader
           TABLES
             return    = li_return.
         e_hukey       = lv_hukey.
    *It is still not attached to the shipment until HU_POST is done.
      LS_OBJECT-OBJECT = P_OBJTYP.    "04
       LS_OBJECT-OBJKEY = P_OBJKEY.   "Shipment Number.
    CALL FUNCTION 'HU_POST'
      EXPORTING
        IF_SYNCHRON          = ' '
        IF_COMMIT            = 'X'
        IS_OBJECT            = LS_OBJECT
      IMPORTING
        ET_MESSAGES          = LT_MESSAGES

  • Find second Biggest and second smallest values in the table

    Hi guys
    I am new to oracle - sql and pl/sql
    I need u r help
    My question is i have a table with columns s.no, emp name, salary etc.,
    how can i get the second largest and smallest value in the table (based on salary)
    Any one pls give the queries (pls the query is used in oracle 8i)
    Regards
    Marimuthu.N

    You only need to use max and min. Once you have it, select the max lower than max and the min biggest than min.

  • SQL Server 2012 Management Studio: Creating a Database and a dbo Table. Inserting VALUES into the table. How to insert 8 Values for future use in XQuery?

    Hi all,
    In my SQL Server 2012 Management Studio (SSMS2012), I tried to create a Database (MacLochainnsDB) and a dbo Table (marvel). then I wanted insert 8 VALUES into the Table by using the following code:
    USE master
    IF EXISTS
    (SELECT 1
    FROM sys.databases
    WHERE name = 'MacLochlainnsDB')
    DROP DATABASE MacLochlainnsDB
    GO
    CREATE DATABASE MacLochlainnsDB
    GO
    CREATE TABLE [dbo].[marvel] (
    [avenger_name] [char] (30) NULL)
    INSERT INTO marvel
    (avenger_name)
    VALUES
    ('Hulk', 1),
    ('Iron Man', 2),
    ('Black Widow', 3),
    ('Thor', 4),
    ('Captain America', 5),
    ('Hawkeye', 6),
    ('Winter Soldier', 7),
    ('Iron Patriot', 8)
    I got the following error Message:
    Msg 110, Level 15, State 1, Line 5
    There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement.
    How can I correct this problem?
    Please kindly help and advise.
    Thanks in advance,
    Scott Chang
    P. S.
    The reason I tried to create the Database, dbo Table, and then to insert the VALUES is to learn the following thing:
    You can query the entire node tree with the following xquery statement because it looks for the occurrence of any node with the /* search string:
    DECLARE @x xml;
    SET @x = N'<marvel>
    <avenger_name>Captain America</avenger_name>
    </marvel>';
    SELECT @x.query('/*');
    You can query the avenger_name elements from the marvel_xml table with the following syntax:
    SELECT xml_table.query('/marvel/avenger_name')
    FROM marvel_xml;
    It returns the following set of avenger_name elements:
    <avenger_name>Hulk</avenger_name>
    <avenger_name>Iron Man</avenger_name>
    <avenger_name>Black Widow</avenger_name>
    <avenger_name>Thor</avenger_name>
    <avenger_name>Captain America</avenger_name>
    <avenger_name>Hawkeye</avenger_name>
    <avenger_name>Winter Soldier</avenger_name>
    <avenger_name>Iron Patriot</avenger_name>
    You can query the fourth avenger_name element from the marvel_xml table with the following xquery statement:
    SELECT xml_table.query('/marvel[4]/avenger_name')
    FROM marvel_xml;
    It returns the following avenger_name element:
    <avenger_name>Thor</avenger_name>

    Hi Scott,
    The master database records all the system-level information for a SQL Server system, so best practise would be not to create any user-defined
    object within it.
    To change your default database(master by default) of your login to another, follow the next steps so that next time when connected you don't have to use "USE dbname" to switch database.
    Open SQL Server Management Studio
    --> Go to Object explorer(the left panel by default layout)
    --> Extend "Security"
    --> Extend "Logins"
    --> Right click on your login, click "propertites"
    --> Choose the "Default database" at the bottom of the pop-up window.
    --or simply by T-SQL
    Exec sp_defaultdb @loginame='yourLogin', @defdb='youDB'
    Regarding your question, you can reference the below.
    SELECT * FROM master.sys.all_objects where name ='Marvel'
    --OR
    SELECT OBJECT_ID('master.dbo.Marvel') --if non empty result returns, the object exists
    --usually the OBJECT_ID is used if a if statement as below
    IF OBJECT_ID('master.dbo.Marvel') IS NOT NULL
    PRINT ('TABLE EXISTS') --Or some other logic
    What is the sys.all_objects? See
    here.
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • There's a black space at the top of my window, and when I open the browser, my home page comes up but the address line is blank. How do I fix this?

    There's a black space at the top of my window, and when I open the browser, my home page comes up but the address line is blank. How do I fix this?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset" -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> select Menu Bar and Navigation ToolBar -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache, Site Preferences''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> When Firefox starts : select "Show My Home Page" -> Type the address of the website which you want to be your HomePage e.g. http://www.google.com
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> '''Firefox will: select "Use Custom Settings for History"''' -> REMOVE Checkmark from '''"Permanent Private Browsing mode"''' -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> '''REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES'''
    -> '''When using the Location Bar, suggest: select "History and Bookmarks"'''
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

Maybe you are looking for

  • Second display won't work on mac partition but works on windows

    Hey I have a 21.5" imac from mid 2011 and have recently update to OS X Mavericks. I bought a mini dp to hdmi to connect a second monitor up to my imac a month or so ago. At the time I was running 10.6.8 and thought that may be why it wasn't picking u

  • Need full bleed PDF in Word for Mac 2011 ...

    Hi, I created a PC Word 2010 template that bleeds on all 4-sides. The page size of the document is 5.5"X8.5". When trying to "Save As PDF" on the Word for Mac 2011 I get a .125"(1/8") white border on all sides. This doesn't happen when I issue Save A

  • Dual 2.5 G5 won't auto sleep

    Ever since I updated to 10.4.7, my dual G5 won't automatically sleep after any amount of time I set it to. The computer will sleep if I force it to either using the keyboard shortcut or through the Apple menu. The computer will also auto sleep in the

  • Why is my screen flashing

    The screen on my imac is flashing to "blue" every few seconds. Is this a video or processor problem?

  • Inter company process without delivery and billing

    Dear All, My client needs to do inter company process without delivery and billing. So I have done inter company process same as like intra company transfer. I have used document type NB.During MIGO i got a error "No accounts maintained for  company