Use of the form input

Hi,
I have a class Manager and a class ManagerGUI. I have formatted the code so that it is more readable.
My ManagerGUI class looks somehting like this-
public class ManagerGUI extends JFrame
String name;
JPanel namePanel;
JTextField nameInput;
JLabel nameLabel;
Manager empAgent;
ManagerGUI(Manager ea)
super(ea.getLocalName());
empAgent = ea;
//make the name panel and add it to the topPanel.
addListeners();
getContentPane().add(topPanel, BorderLayout.CENTER);
setResizable(false);
}//end constructor.
public void show()
pack();
super.setVisible(true);
void addListeners()
nameInput.addActionListener(new NameL());
class NameL implements ActionListener
public void actionPerformed(ActionEvent e)
nameE = nameInput.getText();
}//end class ManagerGUI.I have tried to seperate it out so that any changes can be easily implemented (although it perhaps is a long way of doing things).
Now I have a class Manager that wants to call the GUI and then process the information got from the text field.
I use the following lines to call the GUI class.
manGui = new ManagerGUI(this);
manGui.show();I want to use the variable nameE in the Manager. How can I do that?
Thanks.

Duplicate post. See http://forum.java.sun.com/thread.jspa?threadID=686105&messageID=3993035#3993035
You could put a get method in the nameL class that returns nameE. Then call it from your managerGUI

Similar Messages

  • Multi-language support for user-specified text strings used in the forms

    multi-language support for user-specified text strings used in the forms
    Instead of creating multiple forms, 1 in each different language, for the same service, is there any workaround?

    Hoan - is your question what are the considerations when creating multiligual catalogs? If so, I can tell you that at other clients I have seen them use a single catalog for one or two languages. For the two langugages, such as Spanish/English, you can create a single catalog with both of them. Once you get to more than two languages, the catalog would get unweildy and is therefore not suggested.

  • Unable to display Info path form using IE , The form cannot be displayed in the browser because the use of DOM storage has been disabled in the current browser settings. In order to load the form, DOM storage must be allowed.

    I have edited the default edit form for my Issue Tracking Tool using Info Path, But currently when I try accessing the form using IE 10 64x , I got the following error-
    “The form cannot be displayed in the browser because the use of DOM storage has been disabled in the current browser settings. In order to load the form, DOM storage must be allowed.”
    But using Firefox I was able to access the edit form , so can anyone advice on this please?
    Thanks

    . Tools > Internet Options > Privacy Tab > Advanced
    Check the over-ride box to Enable/Accept cookies. Click on Always allow session
    cookies.
    2. Clear Your Cache and Cookie Files
    If you are using an Internet Explorer browser, please follow these instructions to clear
    your cache and cookie files: Open your Internet Explorer browser.
    Tools > Internet Options > General > Browsing History
    Click Delete Browsing History.
    Delete Temporary Internet Files, Cookies and History Also under Browsing History,
    click Settings and make sure that your browser automatically checks for newer versions
    of stored pages. Click OK and restart your browser
     3. Pop-up Blockers
    Turn Off the firewall in IE.
    you can disable\enable it from below:
    http://webdevwonders.com/clear-dom-storage/
    Clear DOM Storage in Firefox:
    Select “Tools” -> “Clear Recent History”, open “Details”, check “Cookies” and select “Everything” as time range.
    ATTENTION: No other time range will clear the DOM Storage. Have a look at
    Mozillas documentation for further info.
    Disable DOM Storage in Firefox:
    Type “about:config” in your address bar and hit enter to view your internal browser settings. Scroll down to „dom.storage.enabled“, right click on it and hit „Toggle“ to disable the DOM Storage.
    Clear DOM Storage in Internet Explorer:
    Select “Tools” -> “Internet Options” -> “General” -> check “Delete browsing history on exit”, click on “Delete”, check “Cookies”, click on “Delete” once more and restart your browser afterwards.
    Disable DOM Storage in Internet Explorer:
    Select “Extras” -> “Internet Options” -> “Advanced” Tab -> Go to “Security” -> uncheck “Enable DOM-Storage”
    Clear DOM Storage in Chrome:
    Select “Tools” -> “Clear browsing data…”, check “Delete cookies and other site data”, select “Everything” from “Clear data from this period” and click on “Clear browsing data”.
    Disable DOM Storage in Chrome:
    Open “Options” and select “Under the Hood” Tab. Click on “Content settings…”, select “Cookies” and set “Block sites from setting any data”.
    If this helped you resolve your issue, please mark it Answered
    ok i did all these steps but still i am getting the same error,, i can not understand how SharePoint works better on firefox and chrome comparing to IE !!! so what i should do now , as all the edit forms that are customized using Info path can not be viewed
    on IE 10 64x !!!!

  • Can DAQmxRegisterEveryNSamplesEvent function be used for the Counter Input Channels

    Hi, All,
    I have an application to count the digitial pulse number. I want to know the time of the coming pulses which start from 1 and increased 4 later, like 1, 5, 9, 13..... The time interval between each pulse is not a fixed value. So I tried to use  DAQmxRegisterEveryNSamplesEvent and DAQmxCreateCICountEdgesChan functions. But afterI called the DAQmxStartTask function, it always failed.  The board I used is the NI-PCIe-6320. Here is part of my code.
    DAQmxErrChk (DAQmxCreateTask("",&m_taskhandle));
    DAQmxErrChk (DAQmxCreateCICountEdgesChan(m_taskhandle,"Dev1/ctr0","",DAQmx_Val_Rising, 0, DAQmx_Val_CountUp));
    DAQmxErrChk(DAQmxRegisterEveryNSamplesEvent(m_taskhandle, DAQmx_Val_Acquired_Into_Buffer, 4, 0, EveryNSamplesCallback, this) );
    DAQmxErrChk (DAQmxStartTask(m_taskhandle));
    I don't know the reason. Can Anyone give me some help. Thanks.
    Yang
    Solved!
    Go to Solution.

    Hi, John,
    What's I what to do is that I have an external digital signal, when the signal goes from low to high, I need do some operations. So I just want to know the time when the digital signal goes from low to high.  The frequency of the digital signal is from 0 - 20000Hz. My first plan is to use a counter to count the pulse rising edges. When the number of edge increases one, I do the designed operations. In this method, I can't guarantee I can catch each pulse rising point. Because sometimes the counter will increase more than one in the on-demand mode. For example, the previous content of the counter is xxxx4, but the next reading the content may become xxxx6.
    After I learned some ANSI C  codes, I found that the ChangeDetectionEvent can help me found time when the signal goes from low to high. So I wrote the following code: (I set the digital signal to P0.0)
    DAQmxErrChk (DAQmxCreateTask("",&taskHandle));
    DAQmxErrChk (DAQmxCreateDIChan(taskHandle,"Dev1/port0/line0","",DAQmx_Val_ChanPerLine));
    DAQmxErrChk (DAQmxCfgChangeDetectionTiming(taskHandle,"Dev1/port0/line0","",DAQmx_Val_ContSamps, 1));
    DAQmxErrChk (DAQmxRegisterSignalEvent (taskHandle, DAQmx_Val_ChangeDetectionEvent, 0, Callback , dialog));
    DAQmxErrChk (DAQmxStartTask(taskHandle));
    int32 CVICALLBACK Callback (TaskHandle taskHandle, int32 signalID, void *callbackData){
    CNIPCIE6320Dlg* dialog = static_cast<CNIPCIE6320Dlg*>(callbackData);
    dialog->m_event_num++;  // Here is to calculate how many events has been triggered
    return 0;
    Yesterday I used this method to get the pulse rising time. I found the m_event_num is close to the ground truth (In the simulation, I know how may rising pulse I generated).  In one two hours test, the offset is almost 400 pulses. But today I did the same tests again. I found the m_event_num got a big difference from the ground truth. The voltage of the whole system today maybe smaller than yesterday, because today the power is from an invertor while yesterday the power is from the electricity supply. So will the lower voltage supply will causing some event missing. Or if PC system became busy will ignore some callings of the event callback function? That's two possible reason will affact the final result. I am not sure. Do you have any experience about this problem.  Or do you have some better suggestion to get the pulse rising time. Thanks again.
    Regards,
    Yang 

  • When using designer the form will not show up.

    When I activate the form designer to make it interactive, it will not show the form except momentatily.  Is ther a way to turn it up? 

    David,
    I responded to the forum but could not figure how to send attachments to you there.   This is another try . 
    I scanned a form to PDF that I want to, make interactive and fillable.  In Adobe Acrobat 7 I clicked on Advanced > Forms> Make form Fillable in Adobe Design. The results is a conversion to an unreadable Form.  Checking the PDF preview tab does not help.  Attached are the Form and the enteractive form. 
    Is there any suggestions as to what I am doing wrong?
    Ed Walsh

  • Using the form input in a class

    Hi,
    I have a class Manager and a class ManagerGUI. I have formatted the code so that it is more readable.
    My ManagerGUI class looks somehting like this-
    public class ManagerGUI extends JFrame
    String name;
    JPanel namePanel;
    JTextField nameInput;
    JLabel nameLabel;
    Manager empAgent;
    ManagerGUI(Manager ea)
    super(ea.getLocalName());
    empAgent = ea;
    //make the name panel and add it to the topPanel.
    addListeners();
    getContentPane().add(topPanel, BorderLayout.CENTER);
    setResizable(false);
    }//end constructor.
    public void show()
    pack();
    super.setVisible(true);
    void addListeners()
    nameInput.addActionListener(new NameL());
    class NameL implements ActionListener
    public void actionPerformed(ActionEvent e)
    nameE = nameInput.getText();
    }//end class ManagerGUI.I have tried to seperate it out so that any changes can be easily implemented (although it perhaps is a long way of doing things).
    Now I have a class Manager that wants to call the GUI and then process the information got from the text field.
    I use the following lines to call the GUI class.
    manGui = new ManagerGUI(this);
    manGui.show();
    Is this the correct way of calling the GUI class?
    How do I get to use the variable nameE here, in the Manager?
    Thanks.

    I hope it works for you now (why using , but not indentation?).                                                                                                                                                                                           

  • Problem in HtmlPanelGroup when using in the form of array

    hi
    i am working in a jsf project using hibernate and mysql.My problem is in using HtmlPanelGroup.
    here HtmlPanelGroup is used as array like
    HtmlPanelGroup[] sample;
    and faces-config's scope is request.when i process the application,the value of HtmlPanelGroup array is null throwing NullPointerException.but when i change the faces-config scope to session,i got the expected result.Eventhough i got the results in session scope,i need the results using only request scope which is my determined constraint.
    In the request scope, the getter method of sample is called,but when i do some data storage,the setter method of sample is not called.i think that is why the data of HtmlPanelGroup have not been got and this threw NullPointerException.is there any solution to call the setter method of HtmlPanelGroup array in request scope and to avoid the NullPointerException?
    Thanks
    rgds
    oasisdeserts

    Hi Baluc,
    I have been invoking this line throurgh commandButton's action attribute as follow.
    <td><h:panelGroup binding="#{partnerDetail.partnerInfo[0]}" />
    <h:commandButton type="submit" action="#{partnerDetail.addPartner}" value="Save" />
    The Backend method is
    Public class Partner{
    public String addPartner(){
                   try{
    PartnerAdditionalPerson     personAdditionalPerson      = new PartnerAdditionalPerson();
    String partnerContactPersonName                    = ((HtmlInputText) this.partnerInfo.getChildren().get(1)).getValue().toString();
                   String partnerContactPersonEmail                    = ((HtmlInputText) this.partnerInfo[i]
                                                      .getChildren().get(2)).getValue().toString();
                             personAdditionalPerson.setPartner(part);
                             personAdditionalPerson.setPartnerContactPersonName(partnerContactPersonName);
                             personAdditionalPerson.setPartnerContactPersonEmail(partnerContactPersonEmail);
                             session.save(personAdditionalPerson);
                   }catch(Exception e){
    return "SUCCESS";
    what shall i do to save the partnerInfo htmlpanelgroup in data base using request scope?
    rgds
    oasisdeserts

  • How do link form input and a datatable that are on the same page?

    I am real new to JSF, so I'm having the following issue...
    I created a demo app that will pull records from from a database and display them in a datatable. I hava a backingbean for this process that works great with hardcoded data.
    Now, I want to add a form to this page and use the form input to drive the results in the datatable. I have created my form and used a separate backingbean that is essentially a JavaBean for all the form input.
    My question is how do I integrate the submit button from this new form to feed the call that is used for the datatable?
    Here's is a snippet of the pertinent code from the JSP:
    <TABLE border="0">
                   <TBODY>
                        <TR>
                             <TD>
                             <P>Correlation ID:</P>
                             </TD>
                             <TD><h:inputText styleClass="inputText" id="correlationId"
                                  value="#{LogMessageBean.correlationId}"></h:inputText></TD>
                             <TD width="121"></TD>
                             <TD width="153">
                             <P>Workflow ID:</P>
                             </TD>
                             <TD width="158"><h:inputText styleClass="inputText" id="workItemId"
                                  value="#{LogMessageBean.workItemId}"></h:inputText></TD>
                        </TR>
                   </TBODY>
              </TABLE>
              <BR>
              <div align="center">
              <h:commandButton value="Search" actionListener="#{LogValueListHandler.search}" action="#{LogValueListHandler.result}"/>
              <h:commandButton value="Reset" onclick="reset()"/></div>
              <H5>Application Logging Results</H5>
              <t:dataTable value="#{LogValueListHandler.logList}" var="feed"
                   rowClasses="oddrow, evenrow" headerClass="table">
                   <t:column>
                        <f:facet name="header">
                             <h:outputText value="ClassName" />
                        </f:facet>
                        <h:outputText value="#{feed.className}" />
                   </t:column>
                   <t:column>
                        <f:facet name="header">
                             <h:outputText value="MethodName" />
                        </f:facet>
                        <h:outputText value="#{feed.methodName}" />
                   </t:column>
    ...Thanks!

    Locutus_1,
    I'm working on the same sort of app - A data table where the record selected is displayed in a form below the datatable and may be edited and saved.
    I've included a checkbox in the datatable so that the user can indicate which record is to be displayed and edited. The have everything working, except that I cannot get the checkbox click event passed to the backing bean correctly (critical to the entire operation). When I have this working, I'll post the code.
    This solution does not have a direct link between the datatable model and the data handled by the form. The backing bean code does this. If there was a solution where the two could be linked directly via JSF, I'd be very interested in it.
    Werner

  • HTML special characters in form input

    In my site I store form input in my database. Before I store
    the data, I parse out smart quotes, en dashes, and other extended
    special characters and convert them into HTHML quivalents such as
    &#8217;
    All is well and good until the user goes to edit their info.
    In my form these characters show up in my <input> tags as
    their long-winded HTML equivalents, such as &#8217; instead of
    a smart apostrophe.
    Is there any way to convert these back to the special
    characters from the HTML on the form input text fields so that
    users can edit them without being confused?
    Thanks.

    Hmmm, well I ran the MX 6.1 updater and installed the two hot
    fixes that had to do with null pointer exceptions and it still does
    not work.
    Here is the detailed error I'm getting, if it helps. Any more
    ideas? Thanks again for the help, I'm really stuck on this one...
    The system has attempted to use an undefined value, which
    usually indicates a programming error, either in your code or some
    system code.
    Null Pointers are another name for undefined values.
    The error occurred in C:\Inetpub\wwwroot\store\index.cfm:
    line 1
    1 : <cfquery name="getBooks" datasource="#dsn#">
    2 : SELECT *
    3 : FROM products
    Please try the following:
    * Check the ColdFusion documentation to verify that you are
    using the correct syntax.
    * Search the Knowledge Base to find a solution to your
    problem.
    Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
    rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7
    Remote Address 127.0.0.1
    Referrer
    Date/Time 09-Oct-07 02:20 PM
    Stack Trace
    at
    cfindex2ecfm1770128649.runPage(C:\Inetpub\wwwroot\store\index.cfm:1)
    java.lang.NullPointerException
    at coldfusion.sql.QueryTable.populate(QueryTable.java:260)
    at coldfusion.sql.QueryTable.populate(QueryTable.java:159)
    at coldfusion.sql.Executive.getRowSet(Executive.java:505)
    at coldfusion.sql.Executive.executeQuery(Executive.java:974)
    at coldfusion.sql.Executive.executeQuery(Executive.java:886)
    at coldfusion.sql.SqlImpl.execute(SqlImpl.java:236)
    at
    coldfusion.tagext.sql.QueryTag.doEndTag(QueryTag.java:447)
    at
    cfindex2ecfm1770128649.runPage(C:\Inetpub\wwwroot\store\index.cfm:1)
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:147)
    at
    coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:357)
    at
    coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:62)
    at
    coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:107)
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:80)
    at
    coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:24)
    at
    coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:47)
    at
    coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)
    at
    coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
    at
    coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:35)
    at
    coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:43)
    at
    coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
    at coldfusion.CfmServlet.service(CfmServlet.java:105)
    at
    jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
    at
    jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
    at
    jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:249)
    at
    jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:527)
    at
    jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:192)
    at
    jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:348)
    at
    jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:451)
    at
    jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:294)
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

  • Why is HTML showing in the form validation message?

    Here is what is showing when I use server side form validation.
    <ul><li>You must select a location </li></ul> Go <a href="javascript:history.back()">back</a> and correct the problem.
    Obviously, the HTML tags are not supposed to be shown.  What's going on here?  I just upgraded to CF9 on Linux and this started happening.  Any ideas?

    It's a standard CF server-side form validation and looks like this on the form:
    <input type="hidden" name="somefield_required" value="some field is a required field">
    When they submit the form (and didn't enter something for somefield), the automatic message comes up.  The formatting of the message is messed up on CF9.  I've been using this type of server-side validation for years (probably since CF5) and have never seen this problem before.
    Actually, this works fine on another server (CF 9,0,0,251028) but on CF 9,0,1,274733 it is having this issue.  Both are running CF Enterprise on Linux.
    Error message is supposed to look like this:
    Form entries are incomplete or invalid.
    some field is a required field
    Go back and correct the problem.
    The messed up message looks like this:
    Form entries are incomplete or invalid.
    <ul><li>some field is a required field</li></ul> Go <a href="javascript:history.back()">back</a> and correct the problem.

  • Forward Form input info

    I am going to create a form that will have about 3 pages of inputs in one form.
    The first and second page will have continue button and the final page (3rd page) will have the submit (into database) button.
    What is the best way to forward the form inputs from each page so all will be submitted?
    I will use MVC architecture but dont have Struts on our Tomcat 4.1.27 container.

    On the first two pages, put a 'next' button to allow the user to navigate to the next page. On the last page ,put a 'save' button.
    When the user clicks one of the next buttons or save button, store data from those pages in session scope.
    Then, for the save button, get the data from session scope and you have all the data you want.
    If you want to get fancy, put a 'prevous' button on the second and third page so if the end user wants to go back and review his data before submitting, he can. Upon clicking the prevous button, get the data out of session scope to repopulate that page.

  • FRM-92101:There was a failure in the Forms Server during setup

    I get the following runtime error when press "send" button in one of the forms.
    FRM-92101:There was a failure in the Forms Server during setup. This could happen due to invalid configuration. Please look into the web-server log file for details.
    Please suggest how to resolve....

    Getting the error "FRM-92101:There was a failure in the Forms Server during setup" when calling a db package from forms package. (Specifically when package variable is defined in record type).
    Application.log shows
    10/03/06 08:26:06 formsweb: Forms session <54> aborted: unable to communicate with runtime process.
    10/03/06 08:26:06 formsweb: Forms session <54> exception stack trace:
    java.io.IOException: FRM-93000: Unexpected internal error.
    Details : No HTTP headers received from runform
    Please let me know the solution............
    Other Details:_
    Rec type is being used in the forms package and db package.
    DB Package (dbpkg1) Spec:_
    TYPE rec_type IS RECORD
    (var1 IN db.pkg1.var_type, (var_type is table of table1.field5%type)
    var2 IN table.field1%TYPE,
    var3 IN table.field2%TYPE,
    var4 IN table.field2%TYPE,
    var5 IN table.field2%TYPE,
    var6 BOOLEAN)
    PROCEDURE main
    (rec1 IN rec_type);
    Form body:_
    PROCEDURE proc1
    IS
    frm_rec dbpkg1.rec_type;
    BEGIN
    frm_rec.var2 = "Value";
    frm_rec.var3 = "Value";
    frm_rec.var4 = "Value"
    frm_rec.var5 = "Value"
    frm_rec.var6 = "Value"
    dbpkg1.main(frm_rec);

  • How to make form input value a dataset value?

    Have a form and one hidden field, i want the value to come from
    a dataset.
        <input name="buyerbid" type="hidden" id="buyerbid" value="<?php  { ?> echo '<div spry:region="ds3" class="StackedContainers">
    <div spry:repeat="ds3" class="RowContainer">
    <div class="RowColumn">{column0}</div>
    </div>
    </div>' ;
    <?php } ?>" /> 
    The Spry is the
    <div spry:region="ds3" class="StackedContainers">
    <div spry:repeat="ds3" class="RowContainer">
    <div class="RowColumn">{column0}</div>
    </div>
    </div>
    Spry dataset renders correctly in a div on the page, but can't get the same value in the form input value?
    thanks for your help,
    Jim Balthrop

    thanks for your help.
    The php i knew was the wrong code.
    the spry region not surrounding the form was the answer.
    so i did it this way and it worked.
    <div spry:region="ds4"><form method="POST" name="client_bid" id="client_bid">
        <input name="vehicle_ID" type="hidden" id="vehicle_ID" value="<?php echo $row_rs_vehicle['vehicle_ID']; ?>" />
        <input name="buyer_ID" type="hidden" id="buyer_ID" value="<?php echo $row_rs_login['client_ID']; ?>" /> 
        <input name="auction_ID" type="hidden" id="auction_ID" value="<?php echo $row_rs_auction['auction_ID']; ?>" />
        <input name="buyerbid" type="hidden" id="buyerbid" value="{ds4::column0}" />
        <input name="submitbuyer" type="submit" id="submitbuyer" value="Submit Bid">
      </form></div>
    thanks again.
    -Jim Balthrop

  • Using differing numbers of inputs for a similar query using DBMS_SQL

    Hi,
    I'm trying to use DBMS_SQL for a query that's either going to include the following WHERE statement:
    "AND sched_requirement_id = pin_sr_id"
    or not base upon conditions passed to the procedure calling it
    v_sql_stmt :=
    'SELECT COUNT(1)
    INTO v_exists
    FROM SCHED_PSA_REQS
    WHERE sched_week_id = pin_sched_week_id
    AND sequence_number = pin_seq_no
    AND sched_original_req_id = pin_sor_id
    ----> AND sched_requirement_id = pin_sr_id<---------
    AND ROWNUM = 1';
    The only reason I can't use NDS for this is because of the pin_sr_id input doesn't exist inside the universe of the v_sql_stmt. If it was an inner join or something I could get away with it.
    I read that DBMS_SQL doesn't care how many input values it gets until the dbms_sql.EXECUTE statement, but in all the documentation I've read through I have yet to come across an example that deals with a varying number of input values. Does anyone out there have an example of DBMS_SQL that deals with a varying number of bind input values based upon a conditional statement or input values?
    Thanks!

    Mike,
    Thanks for your input but the EXECUTE IMMEDIATE I would be using contains the following input values:
    EXECUTE IMMEDIATE v_sql_stmt
    INTO v_psa_req_id USING pin_sched_week_id, pin_seq_no, pin_sor_id, pin_sr_id;
    I experimented with exactly what you suggested with scott/tiger:
    set serveroutput on
    DECLARE
    v_target_val NUMBER;
    v_str varchar2(4000);
    f_tbl varchar2(200);
    f_exp varchar2(200);
    dept_var NUMBER:= 20;
    BEGIN
    f_tbl := ', dept d';
    f_exp := 'and e.deptno = dept_var ';
    --f_exp := ' and e.deptno = d.deptno ';
    v_str := ' Select '
    ||' sal '
    ||' from emp e '
    ||f_tbl
    ||'
    where '
    ||' e.empno = :b_v_for_where_cond '
    ||f_exp;
    dbms_output.put_line(v_str);
    EXECUTE IMMEDIATE v_str
    INTO v_target_val USING 7369;
    dbms_output.put_line(v_target_val);
    EXCEPTION
    when no_data_found then
    dbms_output.put_line('No data exception raised');
    when others then
    dbms_output.put_line(SQLCODE||' '||SQLERRM);
    END;
    The code bombs miserably when I try to introduce a variable that's not fed in from the USING clause. From what I've learned of NDS all values must either be deliberately fed in like from the USING statement or must exist "inside the universe" of that SQL statement. Example if I use the line:
    f_exp := ' and e.deptno = d.deptno ';
    instead it works because d.deptno can be referenced from within that SQL statement from table dept.
    So in my case either pin_sr_id is part of the USING clause or it's not. This is the one thing that DBMS_SQL still has over NDS is the fact "It does not need to know the number and types of arguments it will receive and process." (1) Oracle Database 10g PL/SQL Programming pg. 609.
    They say you can use DESCRIBE_COLUMNS and DESCRIBE_COLUMNS2. However, I've yet to find an example of its use. If anybody has any web links to such it would be greatly appreciated.

  • Getting the value of iframe to next page while submitting the form

    hi,
    I have used iframe to change the text as bold or italic . This is changing the text as bold or italic.
    iframe has properties name & id, by using i have tried to get the value while submitting the form , I couldn't get the value.
    can u please help me how to read the iframe content.
    the html code is
    *<div><iframe id="xxx" name="xxxx"></frame></div>*

    Hi Anjan,
    I am using this workflow for an employee to send leave request. I have created an event in a program using SAP_WAPI_CREATE_EVENT to create an event zabsence_form. This event is used to trigger the workflow. I have created a table for leave details. The container used in the form is of that table type.
    The agent for ZFILL_ABS_FORM (for filling leave application)  is the workflow initiator and ZABS_APPROVE is a user who is his manager.
    Now the scenario is that I need to do some screen changes for those two users. For that, I need to get the workflow initiator value in the PBO of the form screen. Any way to do that?

Maybe you are looking for

  • How to get rid of the suggesting spelling?

    How to get rid of the suggested spelling?

  • BT stack disappears after restart.

    In a Portege M200 I downloaded the toshiba BT stack last version (3.10). Everything is ok during installation. BT devices are working properly (at least the headset). When I Power on again the pc, all BT stack files disappear(seems correctly unistall

  • Using Blackberry as a data modem

    Blackberry Curve 8530 - Sprint I am trying to use my blackberry as a simple, old-fashined data modem. Every two weeks I am required to transmit a data file to Baton Rouge, LA using XMODEM protocol. All the modem info on the Blackberry site seems gear

  • Java program to perform binary addition,subtraction and modulus.

    i am a newbie to java and require ur urgent help plzzzz. i wanna perform binary addition,subtraction and modulus operation between two numbers of 512 bit without using java functions i.e by simple logics of control statements.i need to convert two 51

  • I need a older version of firefox, where do I get it?

    I just had to update my computer O.S. to windows 7, I need a version that isn't version 9. Version 7 or 8 will do, I think. Where can I get this version? Thank You, Bill parker