How to use one single boolean button to control a multiple while loops?
I've posted the attached file and you will see that it doesn't let me use local variable for stop button, but I need to stop all the action whenever I want but more than one single button on the front panel would look ugly... The file represents the Numeric Mode of
HP 5371A. thanks for your time
Attachments:
NUMERIC.vi 580 KB
In order to use a local variable, you can change the mechanical action of stop button (Switch When Pressed will work), or create a property node for it and select values. You'll also have to do a lot of work changing those for loops into while loops so that you can abort them.
Similar Messages
-
HT1660 how can I use one single library for all users on the same laptop?
how can I use one single library for all users on the same laptop?
You are most of the way there. Each user having access to hard drive is the key. If users are limited in file privileges this is harder.
Any files you add to your library and any files she adds to her library are available to the other. Just not automatically. Each user must add the files to their own library using the add file or add folder option from menu bar.
What I have done is set library location to a location outside of My Documents\My Music. On my network storage I have a folder names s:\itunes. Both accounts iTunes are set to use this location for the library. -
How to save multiple tables on one single save button in JDeveloper.
hi all,
i have two tables on a JSF page.
the parent and child tables has 1 to many relationship.
its like for department id i have many employee_id's.
in my scenario ,
i have to give values to both parent and child tables at a time on one single click on add button. and after clicking on one single save button i should be able to commit the data into database for both the tables at a time.
its similar like a hire a person in fusion applications , when you clinked on hire person. all the related tables populated to give data and on one single save committing data to database.
please help in this. and its my urgent requirement for my application design.
am beginner to the J Developer Tool and ADF.
regards,
M vijayalakshmi.I assume you are using ADF BC as your business components. Now if both your Master and Chail VO are instances of the same AM, the commit operation of the AM will take care of it. You just have to drag and drop the commit operation as a Save button in your page
-
How to use one email adress for multiple recipients
Hello,
I'd like to know how to use one email adress for multiple recipients.
this would be very useful or projects. for example;
if i send one mail to [email protected], all people in this project get an email.
I will add the people in this project myself.
I know it is possible, but I don't know how to do it ;-)
please help me!Hope this help.
_http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx -
How to use one commandButton to execute two tasks in JSF
I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
The code of the inputText:
<h:inputText value="#{bindings.ProjectNumber.inputValue}"
id="pn"
size="10"
required="#{bindings.ProjectNumber.mandatory}">
The code of commandButton:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}"/>
The managed bean is �findInspector�. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}">
<h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
</h:commandButton>
But it was not work
Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two tasks in JSF.
Thank you
WaheedJust dopublic void execute() {
anotherAction(inputValue);
I guess those articles might be interesting about passing params and the usage of inputHidden and also about using datatables:
http://balusc.xs4all.nl/srv/dev-jep-com.html
http://balusc.xs4all.nl/srv/dev-jep-dat.html -
How to use one commandButton to execute two task in JSF
I have a form in JSF page which contains different faces components. These faces bind to ADF BC to insert one row in the database when the user press commandButton. Also I need to bind the value of one inputText in that form to managed bean to execute another task in the application when the user press the same commandButton.
The code of the inputText:
<h:inputText value="#{bindings.ProjectNumber.inputValue}"
id="pn"
size="10"
required="#{bindings.ProjectNumber.mandatory}">
The code of commandButton:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}"/>
The managed bean is “findInspector”. I tried to insert inputHidden inside commandButton tag and assign the value of the inputText to the inputHidden as follows:
<h:commandButton actionListener="#{bindings.Commit.execute}"
value="Save"
disabled="#{bindings.Commit.actionEnabled}">
<h:inputHidden value="#{bindings.ProjectNumber.inputValue}" binding="#{findInspector.project}"/>
</h:commandButton>
But it was not work
Please how can I write the code to use the value of the inputText more than one time in the JSF(one to insert one row by using ADF BC and another to use the same value to bind to a managed bean) and how to use one commandButton to execute two task in JSF.
Thank you
WaheedYes I did
<managed-bean>
<description>The bean for get project No</description>
<managed-bean-name>projectBean</managed-bean-name>
<managed-bean-class>
mcscm.model.ProjectBean
</managed-bean-class>
<managed-bean-scope>request</managed-bean-scope>
<managed-property>
<property-name>bindings</property-name>
<value>#{bindings}</value>
</managed-property>
</managed-bean>
Also I changed the method in the managed bean as follows:
public String commandButton_action() {
FacesContext fctx = FacesContext.getCurrentInstance();
ValueBinding vb = fctx.getApplication().createValueBinding("#{bindings}");
DCBindingContainer dcb = (DCBindingContainer) vb.getValue(fctx);
OperationBinding operation = (OperationBinding) dcb.get("projectNumber");
operation.execute();
return null;
where projectNumber is my method in the java class of the application module "TaskInformationImpl". I made this method to be accessed from outside of ADF BC.
I just create a sample code for projectNumber method for testing only as:
public void projectNumber (String data){
System.out.print(data);
In the page Pagedef file I added this :
<methodAction id="projectNumber"
InstanceName="TaskInformationDataControl.dataProvider"
DataControl="TaskInformationDataControl"
MethodName="projectNumber" RequiresUpdateModel="true"
Action="999" IsViewObjectMethod="false">
<NamedData NDName="data" NDValue = "#{bindings.ProjectNumber.inputValue}" NDType="java.lang.String"/>
After I did all of this I get a new error like:
javax.faces.FacesException: #{projectBean.commandButton_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding cannot be cast to oracle.adf.model.OperationBinding
Is it very difficult to do this in JDeveloper?. yes ADF BC provide me a lot of facilities, but when I want to do a specific task I face a lot of troubles -
How to use one report column into the another report in obiee
How to use one report column into the another report in obiee
i dont want to use column as a filter for another report it should be report column for another report
Thanks,
Vivek -
How to use Checkbox and radio buttons in BI Reporting
Hi BW Experts,
My Client has given a report in ABAP format and the report has to be develop in BI.It contains Check boxes and the radio buttons. I dont know how to use Checkboxes and radio buttons in Bex.For using this option, do we need to write a code in ABAP.Please help on this issue.
Thanks,
RamHi..
Catalog item characteristic
- Data element
- Characteristic type
Entry type
List of catalog characteristics
Designer
Format (character)
Standard characteristic
Alternative: Master characteristic
(used for automatic product
assignment)
Simple entry field
Alternatives:
Dropdown listbox or radio button
list -
How to use the cases in button action?
Hi Experts,
I want to get a prompt message if the field is empty.I got it but at the same time if the field is filled I want the other action to be performed that is to call a BAPI and give me output.How can I give two events for the same action.
How to use the cases in button action?
So, please guide me.Urgent need
Regards
NutanHi Nutan,
if I understand you, then you have a simple validation. Therefore you can use the validation functionality of VC for your components. An alternative could be by writing a new ABAP RFC function module like:
BAPI Input parameters as input and BAPI output parameters as output and an additional return code or string for a message:
IF I_FIELD IS INITIAL.
E_RETURN_CODE = "THE FIELD IS EMPTY."
ELSE.
CALL FUNCTION <YOUR_BAPI>
<BAPI PARAMETERS>
ENDIF.
I hope that helps.
Best Regards,
Marcel -
How To use window.print() into Button Attributes
hi,
I want to print a report using an print button.so i am using window.print() function into Button Attributes .But Print pop up screen not pop up . How To use window.print() into Button Attributes .
Thanks
Manojdear hari
"Set button target as URL and put following js as URL Target
javascript:window.print();"
Will this be useful to my another thread raised as follows.
In case, if i am able to generate report as txt (ascii) file instead of doc / pdf and is it possible to send the txt file using host command. I am uable to try since i do not know where to place host command on click &print.
yours
dr.s.raghunathan -
How to create a single SCN [Inbound Deliery] ' VL31n ' for multiple PO's
How to create a single SCN [Inbound Deliery] ' VL31n ' for multiple Purchase-Orders with the help of BAPI or BDC Recording in 4.6 b version.
Manually its possible.. but how is it possible in the background i.e through BDC Recording or BAPI's.
[ As we donot have an option of creating one same SCN [Inbound Deliery] for multiple Purchase-Orders in 'VL31n' ].
Please provide the needful Information.These mpeg2 clips do not have audio.
I simply want to create a script that can read in the files, append to each other and then export to an .mov format.
I want the process to be called from a command line that will open QT, run the script, read in the files, append and export.
Thanks.
G5 and Mac Pro Mac OS X (10.4.8) PC's and Windows
G5 and Mac Pro Mac OS X (10.4.8) PC's and Windows -
How to use Bind Variables in Essbase data control
Hi,
I am trying to use Bind Variables in MDX query while creating the Essbase Data Control. I have used the below query with the Bind Variable.. this query is working in Essbase admin console..but it is throwing error (*Invalid MDX Query)* while creating Essbase Datacontrol in JDeveloper.
MDX Query : SELECT {[Measures].Msr_2} ON COLUMNS, [Time].Children ON ROWS FROM cube
where ($name)
Could any body suggest me on how to use bind variables with Essbase Data control.
Thanks,
SwathiHello Swathi, can you please help me how you created Essbase DataControl? Also were you able to figure out this?
Thanks, Praveen. -
How can I vary a PWM´s duty cycle inside a while loop?
Hi,
I'm using the "Generate Pulse Train.vi" to generate pwm signals in counters 0 and 1 in order to drive a DC motor both ways.
The problem is, I need to control the movement of the dc motor with my PI controller which is inside a while loop. I've tried letting the "generate pulse train.vi" outside the while loop, but the problem is, it only changes the value of the duty cycle when the loop is stopped. I also tried putting it inside the loop, but then it doesn't even work.
So, how can I vary a PWM´s duty cycle inside a while loop?
I'm attaching the VI with the PI controller.
Thanks for your help!
Guilherme
Attachments:
controleValvula.vi 332 KBHere's some code I threw together a while back to change a duty cycle on the fly. It generates a fixed 5KHz or 25KHz frequency depending on laser selection, then allows duty cycle to be changed continously. Maybe you can use the premise of it for your application.
~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
Attachments:
Pulse_Width_Modulator.llb 197 KB -
How to use one boolean button to control many boolean buttons?
I would like to create a LabView control interface with boolean buttons.
As my attachment picture shown, there are four boolean buttons.
The button1 is the main power, if I press ON button1, other three
buttons also turned to ON at the same time.
How do I build up the LabView program in the block diagram?
What should I do???
Attachments:
booleans.bmp 722 KBControls and indicators function as variables. In a text based language, you could just write the name of the variable again. In LV, since each control only has one terminal, you need local variables to do this. To create a local variable, right click on the control and from the popup menu select Create>>Local Variable. You can have a local as read or write. Create a local for each of the buttons and wire the data coming out of the first button into the locals.
There is something that is very important to understand here - when you use locals, you can disrupt the dataflow nature of LV and create race conditions. For example - if, after fixing your code, you were to click on one of the buttons, to set it to F, it would immediately be set back to T by the running code. This can be very dangerous. Also, I see you're using the continuous run mode. You should use a loop instead. Try looking for some LV by searching google for "Labview tutorials. Also, here's one you can start with.
Try to take over the world! -
How to use one pop up window for multiple buttons and input fields?
Hi Experts,
I have created a pop up window that will be opened from multiple buttons in the same view. There are input fields that the data will be populated from a pop up window. How can I set up which button that a pop up window is opened from? I also would like to populate the data from a pop up window to the input field next to a clicked button. There are 6 buttons and 6 input fields that share the same pop up window. I would very appreciate your responses.
Thank you,
DonHi,
Try creating 2 context attributes, one in your component controller and the other in the pop-up view. Bind the attribute of pop-up view to the component controller attribute.
In the main view, on click of every button set a unique code in the controller's context which helps you in identifying the button clicked. Since u have created a binding to the pop-up view attribute the value flows from the controller.
In the init method of your pop-up view, check the value of the attribute and based on that display which ever UI elements are required.
Eg:
On Button 1 click set value "B1", Button 2 value "B2" etc. In the init() of pop-up view u can check the values and perform the required operation:
if(("B1").wdContext().currentContextElement().getButtonIdentifier()){
else...{
Hope this helps you.
Regards,
Poojith MV
Maybe you are looking for
-
Further action after leaving search help without event "onEnter"
Hi, I created an iView with an input field to select an employee with search help PREM. Everything works well, so I can search by several match codes. And here's my problem: I need the name of the employee in an output field of my iView whenever I se
-
Content in browser view is not aligned properly but looks fine in design/live view
Here is my site: www.kaleongdesigns.com Here is the coding: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> <meta http-equiv="C
-
Rotation problem...
Hi, I have a problem with rotation, landscape mode. When I turn device more, it turns to portrait mode (upside down). Please fix this problem for me and for users who read when they lie thanks
-
Iphoto shows up under my dock how do i get it?
my Iphoto loads under my dock how can i get it?
-
I am unable to save screenshot after black update
Hello Admin, I am unable to take screenshot after updating black release. Last night I have updated my Lumia 720 with Black release afterwards I'm unable to take the screenshot. I am getting the error like "couldn't take screenshot". Please help me o