How to execute the method of dialogue of the handler of a button?
I created my first dialog of the samples, but I can't find how to execute a method in my handler of a button dialog box. Can someone tell me please in the right direction?
function CreateDialog()
{
this.windowRef = null;
}
CreateDialog.prototype.run = function()
{
.. .floating a lot of vars
Create a palette type window.
var win = new window ('dialogue', 'Spray generator Element', [iTop ILeft then, iWidth, ILeft iTop then + iHauteur]); Bounds = [left, top, right, bottom]
this.windowRef = win;
Add a frame to the content.
win.btnPanel = win.add ("panel", [iPadding, iPadding, iWidth-iPadding, iHauteur-iPadding], "");
... Add a bunch of other things...
win.btnAdd = win.btnPanel.add ('button', [win.btnRemove.bounds.left - iPadding - iButtonWidth, win.lstImages.bounds.bottom, + iSmPadding, win.btnRemove.bounds.left - iPadding, win.lstImages.bounds.bottom + iSmPadding + iTextHeight], "add");
win.btnAdd.onClick = function() {}
TODO implement this
var f is File.openDialog ("open a file");.
win.lstImages.add ("item", f.displayName);
This. EnableControls(); <-problem is on this line here!
};
This. EnableControls(); <-this works
Display the window
Win.Show ();
Returns true;
}
CreateDialog.prototype.EnableControls = function () {}
var result = true;
result = result & & (this.windowRef.ddlPaths.selection! = "");
result = result & & (this.windowRef.lstImages.items.length > 0);
this.windowRef.btnOK.enabled = result;
}
I posted a response to this here: http://ps-scripts.com/bb/viewtopic.php?t=2889
X
Tags: Photoshop
Similar Questions
-
How to change the size of taskbar buttons? I did everything that I've seen proposed in these pages, and nothing works.
The buttons of programs open in the taskbar are tiny and square. I want them to be of normal size (by default). I have locked and unlocked the task bar. I moved the "three vertical lines composed small points." Nothing works.
If you want to enlarge all the icons in the taskbar, and then increase the point size of buttons of legend to a larger number of advanced appearance settings.
Follow these steps:1. click on start, Control Panel, personalization, window color and appearance.
2. on the window color and appearance, click "Classic appearance open for more color options" (link below).
3. in the box "Appearance settings", click on the button "Advanced".
4. in the box "Advanced appearance" under "Item:" dropdown, choose "buttons".
5 set your size
6. click on the OK button.
7 on the "Appearance settings" box, click on the button 'Aplly', wait.
8. click the OK button if you are uncomfortable with the size to change, or just click on the "Advanced" button to set the size.I hope I could help
-
How to make the handles visible direct selection on the pasteboard?
When I go to for transformation/resize images within frames using direct Selection, I don't see the handles of the image because they are white against a white cardboard. I use InDesign CS5 (ver 7.0.4) on a Mac. I've been using InDesign for a few years and never noticed that it was a problem; all of a sudden, the handles seem invisble. I don't remember what the color scheme was before. (Maybe I'll lose my mind). The colors did not alter an update? There is an option in the preferences to choose the color of the pasteboard, but this does not seem to have any effect. In the meantime, I can't find the handles to resize/convert images. I can enter a percentage to scale, but it is sometimes useful. How to make the handles visible direct selection on the pasteboard?
If you're talking about the color of a path and its handles, which is dependent on the color of the layer selection. Go to the layers panel. Double-click the currently selected schema and change the selection to something darker color.
-
How to execute a method after the user login
Hello
I have an application with a public and non-public part. When a connection from the user to the application, I want to execute a method in a session bean to load default data in certain properties in the session bean. How can I execute a method after a connection/disconnection from the user of the application using the ADF security? Is the only Posibility to write a custom plug-in? If so,... How can I easily extend an existing connection module?
Kind regards
AndréHello
How is that you are relying on the login? You can connect to WLS FRO m backing bean (see this ) and if everything is ok, call your session bean method.
You just need the reference of session bean in your backing bean (@EJB injection (yet?) does not work for the safeguarding of the beans, so either do the JNDI research or expose the method in the pageDef and then solve / execute it in the bean to support).Another possibility would be to place - the method call activity after your login to the adfc - config.xml, but this page depends on how you set up logging. So, the first solution should work.
Pedja
-
How to execute the sql statement in the file beats?
I want to execute after the statement
C:\ > sqlplus/nolog
SQL > conn scott/tiger
SQL > select * from tab;
I know I can achieve it following test.bat and testdb.sql file
test.bat is:
sqlplus/nolog @testdb.sql
TestDB.SQL is:
Conn scott/tiger
Select * from tab;
Now I don't want to use the sql file, I want only use bat file, as follows:
test.bat is:
sqlplus/nolog
Conn scott/tiger
Select * from tab;
When I run test.bat, I find only one sqlplus /nolog execute statement, do not execute other statements.
(1) I want to know if there is a method to run the SQL file by fighting without a sql file? How to make it happen?
(2) if I call the sql file, how to hide the password of user? Because I don't want other people to know scott password, if I use conn scott/tiger in testdb.sql, other person can see testdb.sql and the password. Is there a good way to avoid?
Thank you!It works a bit different in Windows. Create a file is like this:
( echo conn scott/tiger@orcl echo spool c:\temp\list.txt echo select sysdate from dual; echo spool off echo exit ) | sqlplus -s -l /nolog
-
How to execute the pl/sql block from a file
Hi all
can someone tell me how to execute a pl/sql block to a file.it does contain no procedures.it is of the form
-Start
-says
-end;
ThanxOk.. If the time points? :)
See you soon!
Bobin -
How to access the handle through its pointer
Hi all
I have a problem regarding the use of the handle and the pointer. I try to use an external DLL library in Labview. In this DLL library, there are two functions, we're like:
int32_t xChannelOpen (CIFXHANDLE hDriver, char * szBoard, uint32_t ulChannel, CIFXHANDLE * phChannel);
and the other is
int32_t xChannelClose (CIFXHANDLE hChannel),
where this 'phChannel' is a pointer to a CIFXhandle "hChannel". Now, I want to highlight this handle 'hChannel' 'phChannel '. I think that's hard to do in C, but how could I do in Labview? Is there a method that accesses the handle of his pointer? I appreciate this very much for any advice.
Thank you very much.
Best regards
Sun
You don't need any special function for this. You must configure the call to the library function node call correctly. When you call xChannelOpen, you must configure the parameter phChannel as an integer pointer passed by pointer value. The value that will be returned in this parameter is the value of hChannel. When you call xChannelClose, passing the same value (the same thread), but this time set it up as an integer of size pointer passed by value.
-
Satellite A100-727: how to change the config of media buttons?
I have a Toshiba laptop Satellite A100 727 and it was these media buttons Nice on the left side of the key board.
They are great, but I have no idea how to change the keys.
I had put them to launch internet and exploited with mediaplayer, but after that I had to do reinstal windows, my harddisck crashed, functions on the buttons has changed, they start up the InterVideo WinDvd.Does one know how I can change the functions of the buttons?
I read something about the tools of Toshiba, but I can't find them anywere.TYVM in advance
Hello
Using TOSHIBA button controls, you can set the key features. If you have it installed you can find the TOSHIBA controls icon in the Panel.
You can also find if you open TOSHIBA help > Optimize. -
Satellite A200 - 23 X: how to change the app assigned to buttons on the touchpad
Dear friends,
I have the Toshiba A200 23 X with Vista.
I installed the Synaptics pointing for the touchpad device. I assigned in the 3 buttons, 3 different possibilities for that when I touch each of these buttons to start the appropriate application.The question is how to change the applications that I assigned?
The first time, before fix, when I touch for example, the first button, a small window appears asking to attach a request, the same happened with the rest buttons 2.
But now I want to change these apps that I have attached to these buttons, I know no way th.If anyone can help please.
Thank you very much
Hello
I think you can change the settings of touchpad button in the properties of the touchpad.
You can find properties of * Panel-> mouse-> device (last tab)-> settings button settings *.There are a few options. You must choose the option called Dual mode
You will find the area where new applications could be affected.Concerning
-
How to disable the clustering task bar button in Win7 HB?
Taskbar button grouping of tasks can be disabled in Windows 7 Home basic, and if so, how?
I want that my task bar buttons arranged in the order they were opened, not grouped according to demand.
I'm not grouping. I know how to toggle the button grouping. I want to disable grouping.
The solution to the problem was to install + 7 Taskbar Tweaker (freeware) of rammichael.com. Under "grouping and combining," "Reunification," non - select all except ' Don ' t group.»
-
How to get the HTML for a button created in Muse
I am trying to create buttons in Muse and then share the HTML for these buttons with a developer. How can I do this?
Hello
You can export the HTML code for the Muse Site via the "Export as HTML" option in the file menu.
It will be useful,
Sonam
-
How to set the shortcut keys for button in Apex
Hello
Could someone help me on how to set the hotkeys for buttons in the Apex.
I need to use say ALT + S to send the page.
The following thread on HTML DB refered to use the quick access key. but who could not work in my case.
Pointers on making it would be useful.
Thank you
VijayHave you tried to use the html buttons but change their class so that they look just like the model buttons?
For example, assume that you use the 20 theme.
together the style of button html button and below the button attributes set class = "t20Button".
-
By default new FF w/Google is great and thank you too much. Prefer to remove the new button at the bottom of the page links and have more empty space on the page where the new links are currently. The links are already very well for use at the top of the pg in a toolbar. Remove the 6 new possible button links? Thank you.
Add code to the file in the chrome folder userContent.css.
Customization files (interface) userChrome.css and userContent.css (Web sites) are located in the chrome folder in the user profile folder.
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: opens showing the file
@-moz-document url(about:home){#launcher{display:none!important}}
-
How to execute the query of a View object in the doDML() method?
Dear all
I'm new with ADF.
I have a READ ONLY display object called CurrencyRatevo.
This VO calculates the rate of change.Select f_get_rate(:p_cur_id) From Dual
And I have a "ExpenseTransaction" entity object for expenditure operations. This EO contains an attribute called "CurrRate" for the exchange rate.
This attribute must be filled automatically before saving it.
I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
Can someone help me to cela, or has another solution?protected void doDML(int operation, TransactionEvent e) { super.doDML(operation, e); // after insert operation // I want to get the result of the "CurrencyRatevo". and populate the attribute" CurrencyRatevo" } }
Thank you@santosh
David wrote: well Yes... you can not access the vo eo...That is not exactly true.
@ta *.
>
I like to write code in the method doDml() to populate the attribute 'CurrRate' of the result of the 'CurrencyRatevo '.
>
You can do by following these steps:
1 - go to the entity of ExpenseTransaction and accessors in view an accessor to add to CurrencyRatevo.
2 - override doDML () method, something like this code@Override protected void doDML(int i, TransactionEvent transactionEvent) { if(i==EntityImpl.DML_INSERT) { RowSet departmentsView1 = this.getDepartmentsView1(); //replace this with your ViewAccessorName departmentsView1.setNamedWhereClauseParam("p_cur_id", 10); departmentsView1.executeQuery(); DepartmentsViewRowImpl first = (DepartmentsViewRowImpl)departmentsView1.first(); this.setCurrencyRatevo(first.getDepartmentName()); } super.doDML(i, transactionEvent); }
Published by: Mohammad Jabr on April 26, 2012 11:18
-
How to execute the SQL statement in the Application Module
Hi people
I´d would like to know how I can execute a SQL statement like "remove user" in the Module to request... prepareSession method...
I m using Jdev 10 with ADF Faces
Thank youThis is possible, but you should think twice about it.
If this can be done with an EO/VO do in this way.
If you can't do it with an EO/VO you can yourself the DB operation (ApplicationModule.getDBTransaction ()) and use a call of createStatement (...) do what you want.Timo
Maybe you are looking for
-
Shock of the Clans-Lost village
I bought the new iPhone 6s and downloaded the clash of clans, but I forgot to transfer the old account and when I tried to transfer the village isn't loading helps anyo?
-
Dear members of the forum OR,. We have just received a chassis NI SMU-1073 with an SMU-6361 OR switched in PXI1Slot2 and a shielded connector BNC-2111. Aims to trigger two output signals to control a laser and a sound via Matlab Application. Version
-
Hi all I need help to convert a file in VI 9.0 to 8.6 VI. Could someone help me please. The files are attached. Thank you very much!
-
Backups of Vista won't start does not as expected
Backups of Vista were starting automatically as scheduled for the last 3 years, but now they do not start automatically. The backup works fine when I start it manually. I did not any changes to the schedule or to the device where the data is stored
-
Sought to follwed and previous forum information steps to unload the upper and lower registry filters but none are included. Have you tried devcon in back and get the followin message "devcon is not recognized as a builtin or external operable progra