Design a Query Form to display a particular form's filed's properties

Hello,
I need to design a Query form to see all the properties and its set values of each and every field (or may be any particular field) of any particular form.
So, is there any way to get the properties set and their values of a field?

You don't use a query for changing the properties in the property palette. You can set and read many (but not all) of the properties in the property pallette at runtime by using these built-ins:
set_item_property
get_item_property
set_block_property
get_block_property
SET_ALERT_BUTTON_PROPERTY
SET_ALERT_PROPERTY
GET_CANVAS_PROPERTY
SET_CANVAS_PROPERTY
SET_APPLICATION_PROPERTY
GET_APPLICATION_PROPERTY
SET_FORM_PROPERTY
GET_FORM_PROPERTY
The help documentation describes how to use these.
Let say you want to let the user change the color of the item. Then you can create a list item with the list of available colors, and create a button that implements the color. When the user clicks the button, it reads the color selected in the list box and changes to that color using the set_item_property.

Similar Messages

  • Designer style query forms

    In Designer WSGL it was a few clicks to set up a query form for emp where the user could enter a minimum and maximum hire date and use a multiselect box to pick departments and then the generated code would produce the necessary between and in clauses in the where.
    Our users aren't used to typing "between" into a hire_ date field and typing "IN (10,20,30)" into a deptno query field is way outside their experience so I need to replicate this prior existing functionality. I've seen Duncan's LOV example code so I know how to do the UI for a multiselect box but I don't know how to bind multiple values. As far as I can tell I'm going to have to write custom form beans for every query screen and then write action code to transfer the data in the form bean into view criteria.
    The query examples I've found all seem to be single-value string based, and I'm having trouble making the leap to more complex queries (like above). Is there a smarter (ie faster, simpler less code intensive) way to do this than the one I've outlined?

    Two things to look at are the Find operation that you get with the ADF Model -
    http://helponline.oracle.com/jdeveloper/help/state?navSetId=jdeveloper&navId=4&vtTopicId=&vtTopicFile=jdeveloper/developing_mvc_applications/adf_pfindmode.html
    And also the setWhereClause method for ADF BC as described here:
    http://www.oracle.com/technology/products/jdev/tips/shmeltzer/setwhereclause/index.html

  • Could query form and result table display at seperate pages

    we are new at html db, there are a few of questions we need to clear before we make decision to use HTML DB to develop our next version of application: (I seperate them at differenct topics).
    * Could query form and query result table display at differenct pages?
    Thanks
    Lei

    yeah, this is surely possible...and quite easy. you'd just set your form page up as you'd like. put a button on that page with a branch to your report page. then have your report query refer to the items you defined on the form page. so if your form page had an item called P1_JOB and P1_DEPTNO you could have your report use those items with a query like...
    select ename, job, sal, empno, deptno
    from emp
    where :P1_JOB = job
    and :P1_DEPTNO = deptno
    ...hope this helps,
    raj

  • Query to display in particular order

    create a query that willl display the total no of employees and that of total number who were hired in 1980, 1981,1982 with column headings .
    The output shoudl be like this
    Total      1981     1982     1983     
    13     5     5     3

    SQL> select (sum(yr_97)+sum(yr_98)+sum(yr_99)) total,
    sum(yr_97) yr_97,
    sum(yr_98) yr_98,
    sum(yr_99) yr_99
    2 from
    3 (select count(1) yr_97 ,0 yr_98,0 yr_99 from employees
    4 where to_char(hire_date,'YY') = '97'
    5 union
    6 select 0 yr_97,count(1) yr_98,0 yr_99 from employees
    7 where to_char(hire_date,'YY') = '98'
    8 union
    9 select 0 yr_97, 0 yr_98,count(1) yr_99 from employees
    10 where to_char(hire_date,'YY') = '99')
    11 /
    TOTAL YR_97 YR_98 YR_99
    69 28 23 18
    Above query retrieves the total record from employees table based on the
    year of hire_date

  • Auto Query Form on Page not working

    Hi,
    I created a simple form portlet and want to autoquery it on a certain record. I added this code to "Before displaying the page" :
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_STC_SAMPLINK',
    p_value => 620352);
    p_session.set_value(p_block_name => 'DEFAULT',
    p_attribute_name => '_CALLED_FROM_LINK',
    p_value => 'STC_SAMPLINK');
    PORTAL.wwa_api_module_event.do_event('DEFAULT', 'QUERY_BOTTOM', 1, 'ON_CLICK', True, '', p_session);
    This performs the query but i see this first record of my table, while it should show the record with STC_SAMPLINK = 620352. When I remove the do_event statement, i can see the field filled in correctly and when pressing the query-button manually, it does show the record with STC_SAMPLINK = 620352.
    What am I doing wrong?
    Using Application Server 10.1.2.0.2 on HP-UX

    I just discovered that it does work using p_session.set_shadow_value (with extra p_language parameter). Does this mean that note 316158.1 on metalink (based on Auto Query Form on Page is no longer valid for 10g ?

  • How to display a particular character  of a word

    Hi,
    can anyone tell me how to display  a particular character of a word in smart forms,Ex:suppose word is India and i want to display character d..
    Thanks in advance.
    Rajesh

    please look at the below explanation:
    DATA: VAR TYPE CHAR20.
    VAR = 'INDIA'.
    WRITE:/ VAR(3) - THIS WILL PRINT FIRST THREE CHARACTERS OF THE INDIA SO THE OUTPUT WILL BE : IND
    WRITE:/ VAR+3(1) = THIS WILL PRINT 1ST CHARACTER AFTER FIRST 3 CHARACTERS SO THE OUTPUT WILL BE : I
    COPY REQUIRED CHARACTERS IN ANOTHER VARIABLE.
    DATA: VAR2 TYPE CHAR10.
    VAR2 = VAR+3(2) .

  • Is there a way to prepopulate an af:query form??

    Hi,
    I am trying to implement an use case mentioned below:
    User tries to create a certification by going through a Train. During this process, on a particular screen, they can Query by applying whatever criteria they want before creating the record. (af:query component is used for this)
    These certifications once created can be Edited too, and that is where my problem creeps in.
    What I am trying to achieve is, when the User goes back to the screen where the query criteria was applied during create, I would like to pre-populate and show the fields that they had used for querying.
    I have access to the searchCriteria because that is saved on the server side and is returned during edit mode, but I am unable to figure out how I can use that to pre-populate an af:query form.
    Please note that I am trying to do this without having the user hit the Save button for saving the query. I want to pre-populate it from the searchCriteria containing the previously used details.
    Can anyone provide some suggestions on this?
    Edited by: 982314 on Jan 16, 2013 12:35 PM

    using your VO invoke createAndInitRow method on it and pass in the already know values using the NameValuePair object. as you said you already(**) have the info to prepopluate. And then invoke insertRow on the viewO.
    please note that the NameValuePair object doesnt get populated if you provide setAtttibute(int,object). basically dont insert positionally. I dont know why, but it doesnt get populated this way. the other way is use setAttribute(String,object), where string is the name of the column/field you want populated and object is the value. get all names using getAtrributeNames and all values using getAttributeValues. do this on the row object for the vo
    ** if you dont have the values to prepopulate you can get previousvalues from the same VO and then reapply them using NameValuePair object.
    Edited by: bigchill on 16/01/2013 17:36

  • Designing LOV Query Problem

    Hello APEX people,
    I posted my problem here:
    Designing LOV Query Problem
    What I have is a sequence like this:
    CREATE SEQUENCE
    DR_SEQ_FIRST_SCHEDULE_GROUP
    MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
    CACHE 6 ORDER CYCLE ;
    What I need would be a SQL query returning all possible values oft my sequence like:
    1
    2
    3
    4
    5
    6
    7
    I want to use it as a source for a LOV...
    The reason why I use the cycling sequence is: My app uses it to cycle scheduling priorities every month to groups identified by this number (1-7).
    In the Admin Form, I want to restrict the assignment in a user friendly way - a LOV.
    Thanks
    Johann

    Here ist the solution (posted by michales in the PL/SQL forum):
    SQL> CREATE SEQUENCE
    dr_seq_first_schedule_group
    MINVALUE 1 MAXVALUE 7 INCREMENT BY 1 START WITH 1
    CACHE 6 ORDER CYCLE
    Sequence created.
    SQL> SELECT LEVEL sn
    FROM DUAL
    CONNECT BY LEVEL <= (SELECT max_value
    FROM user_sequences
    WHERE sequence_name = 'DR_SEQ_FIRST_SCHEDULE_GROUP')
    SN
    1
    2
    3
    4
    5
    6
    7
    7 rows selected.

  • Creating Query Form in Forms 6i

    Is there any standard Oracle Templates to create a query form or the search form in 6i.
    Thanks,
    Sunil

    Hi,
    AFAIK, there is no templates as such. The search form / query form design is purely based on your requirement. Oracle provides the built-ins (enter_query and execute_query) with the default columns. If you need to build your own search form, put all the required attributes in a form manner, and then generate your own where clause based on the user input to query on the table.
    -Arun

  • Auto Query in Before Display Page Section

    The following code is querying master and detail blocks automatically in before display page section. It was working fine. But now I don't know why it doesn't work any more. Does any one know what's the problem?
    declare
    l_fs varchar2(4000);
    l_s varchar2(4000);
    L_user varchar2(4000);
    begin
    l_fs := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE');
    l_s := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_STATUS');
    L_user := portal30.wwctx_api.get_user;
    if l_fs = 'QUERY_AND_SAVE' and l_s is null then
    p_session.set_shadow_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_E_MAIL_ID',
    p_value => L_user,
    p_language => portal30.wwctx_api.get_nls_language
    WWV_MASTER_GENSYS_1(p_block_name => p_block_name,
    p_object_name => p_object_name,
    p_instance => p_instance,
    p_event_type => p_event_type,
    p_user_args => p_user_args,
    p_session => p_session);
    p_session.save_session;
    htp.p('<script>window.location.reload();</script>');
    end if;
    end;

    Hi,
    To query records before displaying and to refresh the page, you can call the same form (by using the code given below)with necessary parameters from ..before displaying page..section of your form.
    declare
    l_fs varchar2(4000);
    l_s varchar2(4000);
    L_user varchar2(4000);
    begin
    l_fs := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_FORM_STATE');
    l_s := p_session.get_value_as_varchar2(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => '_STATUS');
    L_user := 'PPP';
    if l_fs = 'QUERY_AND_SAVE' and l_s is null then
    htp.p('<SCRIPT LANGUAGE="JavaScript">
    window.location.href = "PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=<MODULE ID>&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=E_MAIL_ID&p_arg_values='||l_user||'&p_arg_names=_E_MAIL_ID_COND&p_arg_values=%3D";
    </script>');
    end if;
    end;
    Replace <MODULE ID< with the module id of your master detail form.
    Hope this helps!..
    -Krishnamurthy

  • How to design a query framwork

    Hiiiiiiii,
    Right now I am designing a query fram work in java & I need some suggestion to complete the work.
    Main objective :
    System will pas a query to the database with java and in user interfacewill show all the records of the table.
    The query is unknown, suppose the given query has 30 column and 600 row.
    In this case I have to show them in a maintained way(*column and it's corresponding row*) like we can see in TOD.
    You can say I have to build a software for query which work like the TOD (Oracle ID).
    N.B : I have already completed the portion of fetching records from the database.
    Can you help me regarding this?
    Thanks in advance.

    Souvik_Software wrote:
    That was with hibernate. I want o devolop with core java and need to display on swing table .I would still use Hibernate. You are like someone who wants to start a business where you deliver products to locations throughout a city. Instead of buying a van, you are insisting that you want to design your own vehicle, come up with your own engine or motor, develop your own energy source, manufacture and assemble it yourself. Does that make sense?
    As for connecting databases with GUIs, read about MVC. This Martin Fowler article is a good start: [http://martinfowler.com/eaaDev/uiArchs.html]

  • JSP Query Form

    Hello,
    I used Jdev 903 wizard to create a JSP Query and Browse Form for a table with many columns. It worked well. However, I want to limit number of columns in the query form, also to break up the columns to be in many section in the display page. I looked into many way; but didn't find anyway. Please help!
    Thanks.
    Andy.

    Once you create the Query-by-Form datawebbean, you can modify the templates in the templates\webapp directory by changing all usages of the FindForm bean to use your new DWB. You can also create a new webapp template by copying the existing file and creating a new directory. You can add you new template by modifying the templates\apptemplates.xml. The current entries are:
    <?xml version="1.0"?>
    <APPTEMPLATES>
    <TEMPLATE NAME="default" DIRECTORY="templates/webapp/" USETHEMESELECTION="YES">
    </TEMPLATE>
    <TEMPLATE NAME="Oracle" USEFORMSELECTION="NO" DIRECTORY="templates/cabowebapp/" THEMEDIR="/webapp/jsimages" THEMECSS="/webapp/cabo/images/cabo_styles.css" USETHEMESELECTION="NO" TOOLBARCLASS="oracle.jbo.html.databeans.JSNavigatorBar">
    </TEMPLATE>
    </APPTEMPLATES>

  • Customize af:query form based on ejb entity data control

    Hi all,
    on my application i have a simple table with an af:query form to search data.
    One of the requirements is to have one of the search criteria be displayed and filled depending on certain conditions.
    For example :
    if the user has a certain role, the field should be read-writable but not filled so that the user can specify whatever he wants.
    otherwise the value of the criteria should be something like the username but not be displayed (or at worse read only). Of course in the later case the user couldn't also add in when using the advanced query option.
    How can i achieve this ? Do i have to write a custom QueryModel or could i retrieve the one via #{bindings.ImplicitViewCriteriaQuery.queryModel} and browse this object to remove/update the criteria ? Is there a clean declarative approach to this use-case rather than programmatic ?
    I tried the second solution (not sure if it's the cleanest way) but at some point i end up with a ConcurrentModificationException when removing the criterion from the ConjuctionCriterion list.
    any idea ?
    btw i'm on jdev 11.1.1.5.0
    thanks
    -regards
    Julien.

    Well, the databound query created a sql where clause which is added to the base sql statement. If you don't have a VO where should the where clause been added to?
    The view criteria are also more like a dynamic where clause and I don't think you can easily mimic the framework is you don't have a VO behind it.
    Timo

  • Do i have to select all the key figures when i design a query off of a cube

    Do i have to select all the key figures when i design a query off of a cube? i have three keyfigures on the top of the three keyfigures it says calculated keyfigure. kind of lost dont know what to do. please let me know.
    Thanks!
    York

    No, you have to select at least one.
    Calculated keyfigure (CKF) means it's a formula of two or more other keyfigures. You can select, right-mouse click, display properties and you see how it is composed.
    Under calculated keyfigures you see all available keyfigures of the infoprovider you build the query on. Just move them by drag-and drop from the left to the right into the columns.
    You can have also restricted keyfigures (RKF). This means a keyfigure is restricted by one or more characterstics and their values.
    Hope you got an idea.
    Regards,
    Juergen

  • Short dump while displaying a particular tab

    hi all,
            In a user exit, in IW32 transaction i am displaying a particular tab after a popup warning box. I am able to display the tab i wanted to using field-symbols and changing the T185 at runtime (i changed the build group and panel fields at runtime). but after displaying the screen, if i click on header tab it is giving me a short dump. the error is raised relative to CAUFVD_UPD-INDBT and the error is "ERROR WHEN READING ORDER HEADER WITH INDEX". can anyone explain me what could be the problem? and a possible solution to avoid it.
    thanks in advance,
    Anil.

    Hi Santosh,
    I'd suggest to follow as per SAP Note: 568768 - Analysis of SQL Errors causing Shortdumps or Error messages. The Note contains precise steps to analyze such an ABAP dump.
    cheers
    m./

Maybe you are looking for

  • Synchronization JAVA and ABAP Dictionary

    Hello all, I'm going to do some Java-Development and have to call function modules in SAP ABAP (BAPIs) Environment. All the Input and output parameters are defined within the ABAP Dictionary. Do I have to create all these Dataelements and Structures

  • Problem with view Log/Trace

    I have installed Peoplesoft 8.9 peopletools 8.49 and web logic 9.2 and tuxedo 9.1. I have installed everything succesfully. I have configured the Process scheduler successfully. In the reportnode(REP_NODE, the name i have given for the reporting node

  • Sql net

    I have at times orphan threads running at the db level. To eliminate this, I want to have a sqlnet.ora file with parameter sqlnet.expire_time with 30. Currently I don't see sqlnet.ora file under $ORACLE_HOME/network/admin 1. Does this mean db server

  • Opening a new Safari window

    Last year I downloaded a program that had a green icon that looks likes a round speedometer with "SS" on it. It is labeled "New Safari Window". When you click this, a new safari window opens. Can anyone tell me where to find this download? I have it

  • ICloud Account ID is incorrect

    the account id displayed on my iPhone 4s for my icloud account is incorrect  how do i change it.  It's correct for iTunes and the app store