IWDWindow object query

Hello all,
I have a WD app where I display tables of information to the user. One column of a specific table holds a button that the user may click to open a popup window displaying further details about the data contained for that table row.
This popup window is achieved with the following code;
IWDWindowInfo winInfo = wdComponentAPI.getComponentInfo().findInWindows("RegistrationDetails");
IWDWindow win = wdComponentAPI.getWindowManager().createModalWindow(winInfo);
win.setWindowPosition(400, 80);
win.setWindowSize(200, 100);
win.setTitle(wdComponentAPI.getTextAccessor().getText("RegistrationDetails"));
win.open();
The window cannot be moved around the screen by the user. Is there any way of allowing the user grab and move the window? I'm using SP14.
I see that there is a createNonModalExternalWindow() method but this takes a URL as parm and not an IWDWindowInfo object, can I calculate a URL for the IWDWindow object and use this method?
Regards,
Patrick.

Hi,
I got the URL and I'm opening the window now;
try{
     str = WDURLGenerator.getApplicationURL(wdComponentAPI.getDeployableObjectPart().getDeployableObjectName(), "RegistrationDetails");
}catch(WDURLException e){
The problem now is that the window isn't displaying the data that it did when it was a modal window opened and displayed within a single application (data passed through the component controller).
Thanks for the tip Valery.
I guess I'll just tell the boss that it's not really worth the effort. The user can press the 'Exit' button on the modal window if he/she wants to see what's underneath it. It's further details of a specific row in a table anyhoos, to me the use case is to open it if you want, read what it says and then close it.... open another one if you want. Being able to move the window isn't really important as far as I can see.
Thanks for the input folks,
Patrick.

Similar Messages

  • How To change the ADF View Object  query where-clause at RunTime?

    I am trying to create a simple display page which will display user data (username, assoc_dist_id, assoc_agent_id, status , etc). The User data is stored in a database table and i am using an ADF Read Only table based on the View Object to display the data on the JSF page.
    However, i want to display only the users that a particular person accessing the page has the AUTH LEVEL to see. e.g. If the person accessing the page is an 'ApplicationAdministrator' then the page should display all users in the table, If its a 'DistributorAdministrator' then the page should display only users associated with that Distributor (i.e. assoc_dist_id = :p_Dist_id ) and If its an 'AgentAdministrator' , then the page should display only users associated with that Agent ( i.e. assoc_agent_id = :p_Agent_id).
    Currently my af:table component displays all the users in the table because the query for the view object is (select * from users) . However, i want to use the same viewobject and just set the where-clause at runtime with the appropriate parameter to restrict the dataset returned.
    Do anyone knows how to accomplish this ?

    David,
    See the custom method initializeDynamicVariableDefaults() in the SRViewObjectImpl.java class in the FrameworkExtentions project in the SRDemoSampleADFBC sample application. You can find out how to install the demo if you haven't already from the ADF Learning Center at:
    http://www.oracle.com/technology/products/adf/learnadf.html
    This class is a framework extension class for view objects that adds a neat, generic feature to be able to dynamic default the value of named bind variables. You can read more about what framework extension classes are and how to use them in Chapter 25, "Advanced Business Components Techniques" of the ADF Developer's Guide for Forms/4GL Developers, also available at the learning center above.
    It is an example of generic framework functionality that "kicks in" based on the presence of custom metadata properties on a named bind variable. See section 25.3.3 "Implementing Generic Functionality Driven by Custom Properties" in the dev guide for more details. Using this sample code, if you add a bind variable to a view object, and define a custom metadata property named "DynamicDefaultValue" on that bind variable, and set this custom metadata property to the value "CurrentUser", then that bind variable will have its value dynamically defaulted to the name of the authenticated user logged in. If instead you set this custom property to the value "UserRole", then the bind variable will be set to the comma-separated string containing the list of roles that the authenticated user is part of.
    Once you've created a framework extension class for view objects like this, you can have the view objects you create inherit this generic functionality.See section 25.1.4 "How to Base an ADF Component on a Framework Extension Class" in the dev guide for more info on this.
    By adapting a technique like this (or some idea similar that better suits your needs) you can have your view object query contain bind variables whose values automatically take on the defaults based on something in the user-session environment.

  • View object query bind variable

    I have a bind variable in my view object query and "Required" is unchecked for it. Due to this JUnits are failing with the Missing IN or OUT parameter error. If I set the bind variable as required, the JUnits run fine.
    But this bind variable is also used in several view criterias where it is set as Optional. So if I set the bind variable in the view object query as Required, will it affect the view criterias as well?

    check https://blogs.oracle.com/jdevotnharvest/entry/the_infamous_missing_in_or

  • Business object query panel

    hi all,
    iam new to crystal reports.
    can u guide me how to create query in business object query panel in crystal reports
    using two table in universes.
    Regards.
    Vijender

    If you already have the universe exported to server then create new connection in crystal and select universe and connect to server and select the universe from server. Once you select the universe it popsup query panel, here you can drag what all the fields that you want to display in crystal and also you can add filters in the query panel. Once you create the query add that query to crystal and run the report.
    Regards,
    Raghavendra

  • Help ::Object Query Langauge

    I have to give the object query language to solve some problems can any one help me with this?

    Hi
    <b>HELP_OBJECT_SHOW_FOR_FIELD</b>This function module displays the data element documentation for components of any structure or database table from the ABAP Dictionary. You pass the name of the component and structure or table to the import parameters FIELD and TABLE.
    Refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbad0435c111d1829f0000e829fbfe/content.htm
    Regards
    Ravish Garg
    <b>
    *reward if useful</b>

  • Object Query Language (OQL) Support ?

    I know Toplink has an "ExpressionBuilder" type querying
    But does Toplink support Object Query Language (OQL)
    Example :
    Something like this ?
    // perform query
    OQLQuery query = new OQLQuery(
    "select x from Person x where x.name = \"Doug Barry\"");
    Collection result = (Collection) query.execute();
    Iterator iter = result.iterator();
    Thanks
    Ratheesh

    Ratheesh,
    TopLink does not support OQL. We offer query support through the following 5 options:
    1. EJB QL - for both Entity Beans (CMP/BMP) and Java objects
    2. TopLink Expressions - Object based query API
    3. SQL calls
    4. Stored procedure calls
    5. Quey by example
    Doug

  • Issue with View object query

    Hi,
    I have extended my controller to add an additional condition to the view object query where I appen an add condition.If there is any kind of exception the add condition keeps on appending without refreshing the query to the orginal one.I have to clear the cache to be able to fix it
    below is the peice of code.What should I do to be able to get the original query or refresh it because when i do a getQuery it keeps giving me the query with the earlier condition that I appended and again appends the new condition.
    strQuery = oaviewobjectimpl.getQuery();
    oaviewobjectimpl.setQuery(strQuery+" AND MtlCategoriesKfv.CONCATENATED_SEGMENTS = '"+strCategory+"'");
    RequisitionAMImpl requisitionamimpl1 = (RequisitionAMImpl)oapagecontext.getApplicationModule(oawebbean);
    OAViewObjectImpl oaviewobjectimpl = requisitionamimpl.getReqCategoryVO();
    String strQuery = oaviewobjectimpl.getQuery();
    oaviewobjectimpl.setQuery(strQuery+" AND MtlCategoriesKfv.CONCATENATED_SEGMENTS = '"+strCategory+"'");
    oaviewobjectimpl.setWhereClauseParams(null);
    oaviewobjectimpl.setWhereClauseParam(0, oapagecontext.getCurrentLanguage());
    if(oapagecontext.isLoggingEnabled(1))
    oapagecontext.writeDiagnostics(this, "oaviewobjectimpl.getQuery() "+oaviewobjectimpl.getQuery(), 1);
    oaviewobjectimpl.executeQuery();
    oaviewobjectimpl.last();
    if(oapagecontext.isLoggingEnabled(1))
    oapagecontext.writeDiagnostics(this, "oaviewobjectimpl.getFetchedRowCount() "+oaviewobjectimpl.getFetchedRowCount(), 1);
    ReqCategoryVORowImpl reqcategoryvorowimpl= (ReqCategoryVORowImpl)oaviewobjectimpl.first();
    Number categoryId = reqcategoryvorowimpl.getCategoryId();

    user610276 ,
    Y don't u make a custom VO, as you are doing set query, i expect ur changing entire query of seeded VO, better to use custom VO here and attach it to required beans progrmatically.
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Decode statement in Select line of a View Object Query

    I attempted to create a view object in expert mode with a customized query.
    The query had a decode statement in the select line of the query. The view
    object compiled correctly but gave an error when run.
    ex: select .... decode(CrpSchools.SCHOOLS_ID,null,CrpCustSchools.SCHOOL_NAME,CrpSchools.SCHOOL_NAME) SCHOOL_VALUE, ...
    from ....
    where ....
    The error was that school_value does not exist in the statement. I got the error when
    doing a vo.executeQuery().
    When I removed the decode statement everything worked correctly. Does anyone know if
    the decode statement cannont be used in the select line of a query in a view object?
    Or maybe I was linking the query column (SCHOOLS_ID) up to the view attribute (SCHOOL_VALUE) incorrectly in the
    Attribute Mappings tab of the VO wizard?

    There should be no problem using a DECODE() statement, provided that you've aliases the column as you have done.
    At design time, if you click on the (Test) button, does your query test ok?
    Are you by chance applying a custom where clause at runtime?
    If so, are you saying:
    setWhereClause("yourtable.column_alias = ?";
    or are you doing:
    setWhereClause("column_alias = ?";
    for an expert-mode query, you'll need to use the latter syntax.

  • Pass parameter from jsf to view object query

    Hi,
    i have requirement where user id is captured when user logs in in a session bean.How do I pass this parameter to bind variable in query?
    thanks,
    Mat

    Amit's second link : Setting bind variable for a view object
    should hold answers for you.
    Ypu can also visit : http://groundside.com/blog/DuncanMills.php?title=adf_executing_code_on_page_entry_1_servi&more=1&c=1&tb=1&pb=1
    The general idea is this :
    Get the username (you mentioned portal, so after portal authenticates the user is the username available in a session scoped managed bean ? You would need to access this somehow because your query needs it., preferrably by EL)
    create am AM method to set the bind parameter to the Vo and execute it. The method is automatically exposed to the DataControl.
    Create a method binding in your page def for the method. in the parameters for the method, use the EL to get the username, eg: #{sessionScope.frameworkBean.username} (you could also create a binding for executeWithParams, but I hav'nt done this in a while and dont remember the exact process )
    Now create an executable for the method binding you created. (the executable ensure that this method is called at pageload, and set you refresh condition appropriately)
    Go to the properties
    Edited by: Jeevan Joseph on Jan 13, 2011 2:44 PM

  • PreparedStatement Object Query

    Hi,
    If i use the same PreparedStatement object for two queries, will it cause any issues.
    Example:
    //start program
    PreparedStatement ppt = null;
    ppt = some query;
    ppt.executeUpdate();
    if i try to use the same object for other query, will it cause any problem?
    ppt = anotherquery
    ppt.executeUpdate();
    //end program
    Thanks in Advance

    use same no problem
    but before this u have to store results in ResultSet objects
    so u have to create two ResultSet objects
    thank u

  • Error in "My Objects"-Query

    Hi Experts,
    using Queries in "My Objects"-Section in Document Work Center (using NWBC 3.0) creates an error:
    Last query refresh failed due to internal errors; contact your admin.
    Message no. POWL019
    Diagnosis
    Most possible cause is an exception triggered by the respective business object type feeder class.
    System Response
    The system returned the following error message:
    CREATE DATA: The specified type is no valid data
    Procedure
    Contact your admin, providing him the system error message and your user ID.
    Procedure for System Administration
    Check transction ST22 for the returned system message with the respective user ID.
    What happens here? Can anyone help?

    k reddy,
    most likely is that someone has changed the objects before you, or they are stored as local objects (development class $tmp)
    why don't you try to look for the request number that it's locked against (i think you're given the request number right?) via SE09, and then remove the objects from the other request/s manually. if it's the latter problem, use SE03 and choose the option to change development classes of objects, and then change them manualy, assigning them to the right dev. class and transport request number/s.
    it's a difficult process, and i wish i could suggest a better option, but i don't have that at the moment. =(
    don't forget to assign points if it still helps though.
    ryan.

  • Getting a dataprovider object QUERY property with JavaScript

    Hi, I'm trying to get the QUERY property of a DataProvider Object, but can't seem to get it. Can anyone tell me if this code is ok?
    Thanks!
    <object>
    <param name="OWNER" value="SAP_BW"/>
    <param name="CMD" value="SET_DATA_PROVIDER"/>
    <param name="NAME" value="DP1"/>
    <param name="QUERY" value="ZGZMPASDPL_SR21_CNRTY_DASH_01"/>
    <param name="INFOCUBE" value="ZMPASDPL"/>
    DATA_PROVIDER:             DP1
    </object>
    var currentQuery = SAPBWGetItemProp("DP1");
    var queryName;
    if (currentQuery != null)
    {   for(i=1; i<currentQuery.length; i++)
            {  if (currentQuery<i>[0] == "QUERY")
                   queryName = (currentQuery<i>[1]);

    Hi Kenneth,
    copy&paste the attached webtemplate coding in your WAD...
    regards Jens
    <HTML>
    <!-- BW data source object tags -->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_DATA_PROVIDER"/>
             <param name="NAME" value="DATAPROVIDER_1"/>
             <param name="QUERY" value="ZGZMPASDPL_SR21_CNRTY_DASH_01"/>
             <param name="INFOCUBE" value="ZMPASDPL"/>
             DATA_PROVIDER:             DATAPROVIDER_1
    </object>
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="SET_PROPERTIES"/>
             <param name="TEMPLATE_ID" value="Z_GETQUERYID"/>
             TEMPLATE PROPERTIES
    </object>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control">
    <TITLE>BW Web Application</TITLE>
          <link href= "/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>
    </HEAD>
    <BODY>
    <span style="DISPLAY: none; VISIBILITY: hidden" id="queryname">
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="BORDER_STYLE" value="NO_BORDER"/>
             <param name="SHOW_COMMON_ELEMENTS" value=""/>
             <param name="SHOW_FILTERS" value=""/>
             <param name="SHOW_VARIABLES" value=""/>
             <param name="ELEMENT_TYPE_1" value="COMMON"/>
             <param name="ELEMENT_NAME_1" value="REPTNAME"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_1
    </object>
    </span>
    <P></P>
    <P><object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TABLE_1"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
             <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
             ITEM:            TABLE_1
    </object></P>
    <script language="JavaScript">
    var queryid = document.getElementById('queryname').innerHTML;
    alert(queryid);
      </script>
    </BODY>
    </HTML>

  • SetCurrentRowWithKeyValue - Does this execute View Object Query twice?

    Hi,
    I have a View Object for which on the prepare model of the page definition I am executing the setCurrentRowWithKeyValue action.
    In the log I see two queries being printed one with Bind Variable of the Key value that I have passed and right next to that I see one more query for the same view object that gets executed without any where clause.
    This causes the View Object to execute an open query which is causing performance issue.
    Any help/Insight on this problem is greatly appreciated.
    Thanks,
    Kumar K.

    Thanks for the response.
    Solution provided in the thread doesn't prevent the execution but it will not return any rows..But I am just curious to know that is there some thing different done while using setCurrentRowWithKeyValue?
    Why should it execute query twice once with Bind variable and next time without the bind variable?
    Kumar K.

  • Object, Query and Java Persistence API

    Hello Java Programmers.
    Question to Object handling with Query results and evaluation.
    Example:
    one table with 3 Columns
    Tablename = ISO6933
    Column 1 = UID
    Column 2 = language name
    Column 3 = language long name
    data in database:
    C1 = 1
    C2 = "ger"
    C3 = "german"
    read the data from database with EntityManagerFactory and EntityManager
    Query query = em.createNativeQuery("SELECT * FROM ISO6933");Final to - Query (Persistence) to Choice (AWT)
    Search short code for example!
    query.setFirstResult(0); // first element -> possible?
    java.util.List queryList = query.getResultList();
    // warnings -> List is a raw type. References to generic type List<E> should be parameterized
    java.awt.List list = new List();
    list.add(queryList.toString()); // for one element in the result, for more elements for/next loop
    // = [1,ger,german]I do not want to use
    - StringTokenizer
    - String.split
    (Cast from java.util.List to java.awt.List = Type mismatch: cannot convert from List to List)
    for one elements from [1,ger,german]
    final to
    1
    ger
    german
    in the AWT List()

    no answer? = is an answer !
    the normal solution would be for example.
         Query query = em.createNativeQuery("SELECT * FROM ISO693_3"); // create query
              query.setFirstResult(0); // first element          
              Object[] objectList = query.getResultList().toArray();          
              // objectList[X] = UID,LANGUAGE_ID,LANGUAGE_NAME
              int intLength = objectList.length; // Length          
              StringTokenizer token; // parser
              String string = new String(); // temp
              for (int i1=0;i1<intLength;i1++)
                   string = objectList[i1].toString();
                   string = string.substring(1, string.length()-1);
                   token = new StringTokenizer(string, ",");
                   while (token.hasMoreElements())
                        list.add(token.nextToken().trim()); // the next element and clean string
              }I look for however a better solution!
    Best greetings

  • How to not have your view objects query before the page comes up?

    Hello. I have a view object that is part of a LOV. This view object always gets queried on bringing up the page (I need it to happen on the LOV click) How can I have the VO not queried initially? I tried setting the Iterator to refresh never, but it still does it. Here's the log before the page comes up:
    [363] BindingContext.put( ContactsAMDataControl@irepair_DataBindings_cpx, oracle.jbo.uicli.binding.JUApplication )
    [364] Resolving VO:ContactsVVO1 for iterator binding:ContactsVVO1Iterator
    [365] Changing iterator range size from :1 to :25
    [366] ContactsVVO1 ViewRowSetImpl.execute caused params to be "un"changed
    [367] Column count: 13
    [368] ViewObject: ContactsVVO1 Created new QUERY statement
    [369] ContactsVVO1>#q computed SQLStmtBufLen: 663, actual=623, storing=653
    [370] select
    oc.JOB_TITLE,
    oc.PARTY_SITE_ID,
    RELATIONSHIP_ID ,
    hp.PARTY_NAME OBJECT_NAME, -- Contact
    OBJECT_ID ,
    hr.PARTY_ID ,
    oc.CONTACT_KEY,
    subject_id,
    hp.EMAIL_ADDRESS,
    hp.primary_phone_country_code,
    hp.primary_phone_area_code,
    hp.primary_phone_number
    from HZ_ORG_CONTACT_ROLES ocr,
    HZ_ORG_CONTACTS oc,
    HZ_PARTIES hp,
    HZ_RELATIONSHIPS hr
    where
    hp.party_id = hr.object_id
    and hr.RELATIONSHIP_ID=oc. PARTY_RELATIONSHIP_ID
    and oc.ORG_CONTACT_ID = ocr.ORG_CONTACT_ID(+)
    and relationship_code = 'CONTACT'
    order by OBJECT_NAME
    [371] Bind params for ViewObject: ContactsVVO1
    [372] DCUtil, returning:oracle.adf.model.binding.DCParameter, for ContactsAMDataControl
    [373] LOCALVIEW_USAGE_com_craneae_services_hz_vvo_ContactsVVO_ContactsVVO1 ViewRowSetImpl.execute caused params to be "un"changed
    [374] Column count: 13
    [375] ViewObject: LOCALVIEW_USAGE_com_craneae_services_hz_vvo_ContactsVVO_ContactsVVO1 Created new QUERY statement
    [376] LOCALVIEW_USAGE_com_craneae_services_hz_vvo_ContactsVVO_ContactsVVO1>#q computed SQLStmtBufLen: 663, actual=623, storing=653
    [377] select
    oc.JOB_TITLE,
    oc.PARTY_SITE_ID,
    RELATIONSHIP_ID ,
    hp.PARTY_NAME OBJECT_NAME, -- Contact
    OBJECT_ID ,
    hr.PARTY_ID ,
    oc.CONTACT_KEY,
    subject_id,
    hp.EMAIL_ADDRESS,
    hp.primary_phone_country_code,
    hp.primary_phone_area_code,
    hp.primary_phone_number
    from HZ_ORG_CONTACT_ROLES ocr,
    HZ_ORG_CONTACTS oc,
    HZ_PARTIES hp,
    HZ_RELATIONSHIPS hr
    where
    hp.party_id = hr.object_id
    and hr.RELATIONSHIP_ID=oc. PARTY_RELATIONSHIP_ID
    and oc.ORG_CONTACT_ID = ocr.ORG_CONTACT_ID(+)
    and relationship_code = 'CONTACT'
    order by OBJECT_NAME
    [378] Bind params for ViewObject: LOCALVIEW_USAGE_com_craneae_services_hz_vvo_ContactsVVO_ContactsVVO1
    Thanks!
    Edited by: user621288 on Jun 17, 2009 4:11 PM

    There are two ways:
    1. Uncheck "Query List Automatically" under List UI Hints in the view object overview xml.
    2. In the query add "where 1=:bnum and 1 is not null" and execute the query in the LaunchPopupEvent
        public void userIdId_launchPopupListener(LaunchPopupEvent launchPopupEvent) {
            DCIteratorBinding myListIter = (getItrtBindings("MyLovViewObj1Iterator"));
            ViewObject vo = myListIter.getViewObject();
            NavigatableRowIterator myItemList = myListIter.getNavigatableRowIterator();
            Row row = myItemList.first();
            Object[] val = row.getAttributeValues();
            ViewRowSetImpl vor = (ViewRowSetImpl)val[row.getAttributeCount() - 1];
            vor.setNamedWhereClauseParam("bnum", new BigDecimal(1));
            vor.executeQuery();
        }

Maybe you are looking for

  • Current day EBS - memo record for status BAI codes

    Hello all, My client has a requirement of uploading current day EBS statement (only 1 file at the start of the day). I believe that FF.5 will allow the upload of this statement and then we can use transaction FPS3 to select the particular records so

  • Report Painter - Business Area & GL Account Question

    Hi All, Here is the problem I'm attempting to solve.  In the Rows we have all the inventory GL/Accounts and company codes.  In the columns we have the Period and Business Area. The issue the company has all of their postings in one company code going

  • Smartform internal table data is not comming

    hi gurus, i have an internal table data which i have to display on smartform .In debugging i have seen that the internal table is having data and in 'data' tab of table i have given internal table also. but data is not displayed on smartform. can any

  • ObjectInputStream with large files?

    I write two arrays to their own separate files using: FileOutputStream fos = new FileOutputStream("C:/location"); ObjectOutputStream oos = new ObjectOutputStream(fos); oos.writeObject(array); oos.close(); One file is 2MB and the other is 600MB. When

  • 6300 memory full / no messages coming in ???

    Display showing memory full why is this and what do I delete to free more memory. Thanks