Custom query button in form

Hi there,
I want to create custom query button in a Portal Application form component in 3.0.9. How do I do this? I need to perform a restricted where clause query, therefore the default doQuery option is not sufficient.
Thanks in advance.
John

Hi John,
You can add a new button from the "Formatting and Validation " section by clicking on the FORM+ at the top of all the table fields.You can not do your own where clause as the query is made which includes all the columns of the form as shown on the form .
for your own queries what you van do is that you can leave the field blank if you do not want that field to be added in the where clause.If you want to add the field to the where clause you can use operators (against each field in there text boxes) to make your own where clause.More operators support are supported in the
latest version.
Hope this give you some Information regarding your doubt.
rahul

Similar Messages

  • Query button in forms/portlet

    What is the rules of the automatic Query button in forms displayed as portlet in a page. Sometimes it works and sometimes not.
    Thank's in advance.

    I've found the problem. I have in my form my primary key as a hidden field with a default value generated by a sequence.nextval. What I don't now is that the default value is generated in the form show. So I always have a hidden criteria with a new primary key which never exist and block my query.
    I will generate my primary key id sequence with a trigger before insert in the database, not in the form.

  • Submit query  button  parameter form issue

    hi
    im facing problem submit query button . im working in as 10g r2. Every thing is working fine but when i click on submit query button of parameter form. it gives error and and page cant find. its reason that it takes localhost name in url and localhost(asserver.dht.com) is not recognized on internet. To resolve this issue i designed my own parameter form in html and in post method i use my domain name( www.ddgi.com) which is registered on internet. please give me solution so that i can use default parameter form. where from it picks machine name so that i can change it accoding to my domain name.
    My localhost name is asserver.dht.com
    my registered domain on internet is www.ddgi.com

    To help you see what is happening, temporarily add DESNAME to your parameter screen. Make sure that DESNAME on the parameter screen has a value before you click the Submit Query button.
    If you are running the report with a local report service (running on your workstation), the value of desname should be the name of your default printer.
    If you are running the report on a network application server based report service you need to specify the name of a printer that is accessible to the server on which the report service is running. Make sure that it is specified in a way that the server can recognize it, e.g. \\printserver_01\HPLaserJ4210.
    Maybe this will help some.
    James K.

  • How to create a custom query button in Portal?

    Hello,
    I have a requirement.
    In the portal form developed on a table, I have a EmpCD field which is a LOV. when I select a empcd from the LOV, I want to display that empcd details like EmpName, EmpDept, etc. Is is possible to auto-refresh the page with this condition?
    Or, if this can be done with a custom button on the form, that is, if a user select the empcd from the LOV and then press this custom button, then on this, it gets the desired values from the underlying tables and displays them as labels on the portal form page.
    Any help would be desirable. I am trying this for the past so many days but without any luck. I tried searching the Forums as well as Metalink but could not get anything.
    Thanks.
    Saabir.

    Hi John,
    You can add a new button from the "Formatting and Validation " section by clicking on the FORM+ at the top of all the table fields.You can not do your own where clause as the query is made which includes all the columns of the form as shown on the form .
    for your own queries what you van do is that you can leave the field blank if you do not want that field to be added in the where clause.If you want to add the field to the where clause you can use operators (against each field in there text boxes) to make your own where clause.More operators support are supported in the
    latest version.
    Hope this give you some Information regarding your doubt.
    rahul

  • "Stale connection error" in error_log when hitting "query" button on form

    I created a simple form on a view. It has only 3 buttons:
    next, previous, and query. I hit query and get a 404 error.
    Apache's error_log file says "Stale connection due to Oracle
    error 3114". Anybody seen this?

    Carol, I treid what you said but still can't get it to work.
    Here is the code I have it the after displaying page section.
    declare
    v_myvar varchar2(30);
    v_comp varchar2(30);
    blk varchar2(10):='DEFAULT';
    begin
    if 'a_territory' is not null then
    v_comp:=p_session.get_value_as_varchar2
    (p_block_name=>blk,p_attribute_name=>'A_company_name');
    select rowid into v_myvar from cs_custinfo_view where
    company_name = v_comp;
    bico.buttons_proc(v_myvar);
    end if;
    end;
    The procedure that is called uses the rowid to call a form from
    a button that is created by the procedure. The error I get when
    I first load the form is
    An unexpected error occurred: ORA-01403: no data found
    ORA-01403: no data found (WWV-16016)
    An unexpected error occurred: ORA-01403: no data found (WWV-
    16016)
    The preference path does not exist:
    ORACLE.WEBVIEW.PARAMETERS.1257633639 (WWC-51000)
    I assume this is because there is no rowid present yet?

  • Form Alignment issue in table: Custom submit button

    Yesterday as I was putting together a "check availability"
    form within a horizontal table, I ran into difficulties getting the
    form to vertically align in the middle, it kept aligning to the
    top. I was able to correct the problem using the following CSS:
    <style>
    form {
    display:inline;
    </style>
    Now this morning I was switching the generic "submit" button
    with a custom gif button using this code within the form:
    <input type="image" name="submit" src="image.jpg"
    width="110" height="20">
    This worked fine, but every part of the form is aligning to
    the middle correctly except the custom button which is sticking to
    the top. I'm completely lost on how to resolve this issue. If
    anyone has any information on how I can fix the button to align
    with the rest of the form I would greatly appreciate your help. I
    am a beginner at adjusting code.
    Thank you so very much!

    Hello Ram,
    > No custom coding.
    The current forum is for developers. That's why I'd recommend asking non-programming questions in the
    Using SharePoint Designer, InfoPath and Other Customizations forum instead.

  • Query  button in Master/Detail form

    Hello All,
    I created a Master / detail form...looks good for a blind query and for a specific column value...
    The problem is When the user selects query button ,how do I show records that the logged in user has created.
    Am already storing username in the table when the user inserts new record.
    Appreciate if you could send code ..if that's the choice to fix my issue..
    Thanks in advance
    Babu

    Hi,
    Write the following code in 'Query' event of the 'Query' button in your form ..
    p_session.set_shadow_value(p_block_name => 'DEFAULT',
    p_attribute_name => 'A_USER_ID',
    p_value => portal30.wwctx_api.get_user,
    p_language => PORTAL30.wwctx_api.get_nls_language);
    doQuery;
    Replace 'A_USER_ID' with name of your user id field . I hope you have selected this field in your form and if not select this field & hide it in the form to make this code to work.
    -Krishnamurthy

  • Which trigger fires when i press cancel query button in oracle d2k forms.

    hi all,
    i have simply press then enter query but didn't enter anything in form and then press the cancel query. so i just want to know that what trigger will fire when i press the cancel query button in d2k form.
    Regards,
    kam.

    Why not ask into Forms<br>
    <br>
    Nicolas.

  • Submit query button on parameter form

    Hello.
    I have a problem with runing reports with parameter form.
    When i start report from form, parameter form is opened. When i check on AS, which report is running i see reportName.rdf.
    When i then press submit query button, report appears. But when i check it again on AS, i see reportName1.rdf (from another directory)is running.
    Why is that? How can i solve that? Why does submit query button on parameter form run another report (from another directory), then report i start from form?
    I can run two report from form (list item), but i have this problem only on one report.
    Thanks.

    Sorry. I just found the problem - in BEFOREPFORM trigger.

  • How to Hide/Disable custom ribbon button on infopath form!

    Is it possible to hide/disable custom ribbon button on specific infopath form library or list????
    I just want to hide/disable custom ribbon button for specific form library and show/enable these buttons on the other form library!
    Any suggessions??
    Thanks in advance!

    Hi Tahir,
    Using javascript you can show/hide ribbon on particualr page.
    Open your SharePoint master page
    Locate this line: <div
    id="s4-ribbonrow"
    class="s4-pr s4-ribbonrowhidetitle">
    Change it to: <div
    id="s4-ribbonrow"
    class="s4-pr s4-ribbonrowhidetitle"
    style="display:none">
    Now find the end of the “s4-ribbonrow” tag and add following
    block right after it: <Sharepoint:SPSecurityTrimmedControl
    ID="SPSecurityTrimmedControl2"
    runat="server"
    PermissionsString="AddAndCustomizePages">
        <script
    type="text/javascript">
            document.getElementById("s4-ribbonrow").style.display =
    "block";     </script> </Sharepoint:SPSecurityTrimmedControl>
    Save the new master page and publish it.
    Or try this feature.
    http://spribbonvisibility.codeplex.com/
    Best regards,
    Avinash.

  • Customizing Query Usage form - Urgent

    Hi,
    Is there any help topic on customizing query usage form. Could someone tell me how to change the Label of the columns that are used for search criteria. Changing the labels in attribute property is helping in Browse form but not it in Query form.
    Thank You
    Sirisha

    please help me to solve the issue...

  • Query button will not execute on form portal (9.0.4)

    I have a master-detail form that will not execute the query or reset buttons. The query will work if I use a link to execute the form. It was working ok. If I create a new form the query button still won't execute.

    There was a plugin that was causing the problem. Went to Internet Options.
    Click the Advanced tab.
    Under Browsing, click to clear the Enable third-party browser extensions (requires restart) check box.
    Restarted Internet Explorer.
    It works. Thanks for the help!

  • How to get list information on custom ribbon button click in list forms(Editform/Dispform)?

    Hello All,
    I have custom ribbon button on editform/dispform in my list. I want to display current list name on button click of this custom ribbon button. How to achieve it??
    Thanks in advance..!!

    Hey,
    Did you ever tried this variables?
    Anyways variable _spPageContextInfo.pageListId' works for me. It will give list GUID on listforms.
    <CommandUIHandler Command="EditFormButtonCommand" CommandAction="javascript:window.open(L_Menu_BaseUrl + '/_layouts/incitemkt/downloadallattachments.aspx?ID=' + {ItemId} + '&amp;source=' + _spPageContextInfo.pageListId);" />
    Thanks.

  • Customizing the text of next,back, and submit buttons in form guides

    Hi,
    We are preparing some forms in Turkish language. So, we need to change the text of next, back and submit buttons in the form guides. Is this possible? If so, how? Thanks for your help.

    This can be done via Flex Builder.  There is a good Next panel button example in this guide:http://help.adobe.com/en_US/livecycle/es/fggettingstarted.pdf.  I believe you can also control the text via the style sheet applied to the guide.
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Specifies that the button should only be enabled if the current panel is
    not the last panel, and if a user clicks the button the form guide retrieves
    the next panel in the hierarchy. -->
    <mx:Button click="{panels.selectedIndex++}"
    enabled="{panels.selectedIndex &lt; panels.length-1}"
    xmlns:mx="http://www.adobe.com/2006/mxml">
    <!-- Gets the panels ActionScript class instance that includes the list of
    visible the panels in a form guide. -->
    <mx:Script>
    <![CDATA[
    import ga.views.PanelListView;
    private var panels:PanelListView = PanelListView.instance;
    ]]>
    </mx:Script>
    </mx:Button>

  • Redirect to a custom error page when Forms Server shuts down

    Hi,
    I want the forms application to redirect to a custom error page whenever Forms Server goes down. (like network issues, unscheduled shutdown...) Whenever this happens, the user gets a pop up with FRM messages and user has to acknowledge the pop up. Since the application is used in the shop floor, there will not be any user always in front of the screen and will be a very big issue as there are at least 70-80 PC's on the floor which will be attended fewer times(only when there is issue with the machine) other wise the application displays important events of the machine,etc.,
    I am trying to develop a simple HTML error page(may be with applet) which will keep querying the forms server and once the forms server is up and running, the error page will revert back to the application which the user was working earlier to shutdown. Other option is the redirect to main menu of the application (this may be a PSP or a JSP or a Oracle Forms Menu ).
    Is there any event in forms to capture the loss of connection to forms server ??
    BTW, I am using Oracle Application Server 10g Forms and Reports on Windows 2000 Server...
    Any ideas...
    Thanks in advance
    Purush

    I don't think it will be easily possible in Forms for a couple of reasons.
    1. In Forms you do not have query rights, and as soon as you want to edit data, you have to log in. In Forms you log in once, and this sets your rights for the whole session. You will have to do some programming in Forms to achieve what you want. E.g. as soon as you hit the Save button you are asked for a username and password.
    2. A refresh cannot be done in Forms. Remember that Forms is a Java applet. The URL in the browser is just pointing to the startup page only. If you refresh your screen, you are taken back to the login screen of Forms again.
    Well, there will probably be ways around these problems. I'm thinking in the line of calling every form in a separate URL instead of starting a Forms application where one form is called from another form. The default 'query only' form can be called from a startup html page. This page can be refreshed. As soon as the user wants to update data, he clicks on a link or button and is taken to a login form.
    If the refresh is unsuccessful you are taken to a custom error page, like in your ASP application.
    A problem with an automatich refresh may be hanging sessions. Forms server does not always kill sessions.
    And also, how would you avoid a refresh if a user is currently using the form?

Maybe you are looking for