AppleScript how to use "get" for field information and drop-down boxes?
Hi all,
First post.
Looking to use the "get" function or similar for getting information in a list or from a drop-down box or a field.
Example, you open keychain, open the info. for a cert and want to read the currently selected trust setting for "When using this certificate" drop-down.
Or, you want to check the Common Name field under details.
How would I return these specific values?
Thank you,
-b
The exact question being asked here: http://forum.soft32.com/mac/select-table-row-ftopict101735.html
But, that doesn't work with the latest AppleScript.
Similar Messages
-
How can we get a value in a drop down box without refreshing the page
In my application i am having 14 drop down boxes. On selcting a particular value in a drop down box i am doing its corresponding functionality. I would like to get these values without refreshing the page each and every time i select a text box, Is it possible to get these values without refreshing the page each and every time.
RaghuThere is a new hype going on called AJAX. It is either that, or dumping a lot of information in javascript arrays and reading the information from there when you make selections. I would choose AJAX.
-
How to write code for page up and page down buttons on alv screen?
Hi,
Page up and page down buttons are not working in general alv report. Thease buttons are in disable mode. But is stnd. transactions (tcode : fbl5n) these are enabled and working properly, but we can't debug this with /h
How to write code for page up and page down buttons on alv screen?Poonam,
On doing the screen debugging it took me over to Include LSTXWFCC ,kindly check the below code.
module cc_display.
fcode = sy-ucomm(4).
case sy-ucomm(4).
when 'P--'.
perform cc_firstpage.
when 'P-'.
perform cc_prevpage.
when 'P+'.
perform cc_nextpage.
when 'P++'.
perform cc_lastpage.
when 'EX--'.
perform cc_firstcopy.
when 'EX-'.
perform cc_prevcopy.
when 'EX+'.
perform cc_nextcopy.
when 'EX++'.
perform cc_lastcopy.
I guess it can give you some lead.
K.Kiran. -
How to show the selected item in a drop-down box......
hi,
i m using the following code for selecting from the drop-down box...
<html:select property="lddate" style="width:160">
<html:options collection="load_dt" name="AlmCurrencyRiskAnalysisBO" property="load_dt" labelProperty="load_dt"/>
</html:select>
but what happng when i m select any date from the dropdown box it does not show that date. it only shows the last entry date in the load_dt arraylist.
i m trying to implement this on a jsp page..can anyone plz tell me what shuld i do to show selected date...plzz help..its vry urgent.........Vini,
He seems to be using Struts not ADF Faces.
Seems, you have given list to to property and labelProperty, Can you re-check these properties?
Sireesha -
When start to enter username ("un")for an account that I use firefox suggests previously typed ones in drop down box. Accidentally typed a password next to my un, now everytime i begin to type un this presents as option i can click on to fill un field. If someone else wanted to login to own account on my comp firefox would show this. not secure. suggestions?
Remove saved Password(s): [http://kb.mozillazine.org/Menu_differences Firefox > Preferences] > Security: Passwords: "Saved Passwords" > "Show Passwords"
* http://kb.mozillazine.org/Deleting_autocomplete_entries -
How to get values from a multiple drop-down box.
On my first page, I have a multiple drop-down box as the following code.
<select name="selInterMethod" class="textbox" multiple>
<option selected value="CH">Chicago</option>
<option value="NY">New York</option>
<option value="SF">San Francisco</option>
</select>
On my second transaction page, I need to save "CH-NY" into my Database column: city if the user selected Chicago and New York.
How can I accomplish this in JSP?
Thanks for your help.I figured out the solution. Here it is. FYI
String inter_method = "";
String Inter_Method[]=request.getParameterValues("selInterMethod");
if( Inter_Method.length > 0 ) {
for (int i = 0; i < Inter_Method.length; i++) {
inter_method = inter_method + '-' +Inter_Method;
inter_method = inter_method.substring(1,inter_method.length());
System.out.println("trx inter_method = " + inter_method); -
Getting the value from a Drop Down Box
I'm working on a database project to keep track of our Blackberrys. The problem I'm having is entering the values for two drop down boxes. The page I'm working on enters the FirstName, LastName, Department, and Location. Department and Location have thier own Primary Keys and are foreign keys in the Person table. Departments and Locations are aligned by numbers like 1 = Ohio, 2 = Chicago. They
don't automatically increase. The problem I'm having is entering them as a foreign key in the Person Table. I'm not sure if I use a getValue or getSelected or some other code to get the values to populate in the Person Table. I just keep getting a can't add department or location to table.
public String newUser_action() {
// TODO: Process the button click action. Return value is a navigation
// case name where null will return to the same page.
if (personDataProvider.canAppendRow()) {
try {
RowKey rowKey =
personDataProvider.appendRow();
personDataProvider.setValue(
"DBO.PERSON.FIRSTNAME", rowKey,
firstName.getText());
personDataProvider.setValue(
"DBO.PERSON.LASTNAME", rowKey,
lastName.getText());
personDataProvider.setValue(
"DBO.PERSON.DEPTID", rowKey,
department.getSelected());
personDataProvider.setValue(
"DBO.PERSON.LOCATIONID", rowKey,
location.getSelected());
personDataProvider.setValue(
"DBO.PERSON.BEGINDATE", rowKey,
newDate.getText());
//personDataProvider.setValue(
"DBO.PERSONDEVICE.AQUIREDATE", rowKey,
newDate.getText());
personDataProvider.commitChanges();
info("New User " + newUser.getText() +
" added to USER table");
newUser.setText(null);
} catch (Exception e) {
log("Cannot add new User ", e);
error("Cannot add new User: " +
e.getMessage());
} else {
log("Cannot append new User");
error("Cannot append new User");
return null;
}Sun's databound components tutorial may prove helpful to you.
-
How to capture the value selected in the drop down box
Hi all,
I am populating values in drop down box by using FM vrm_set_values in module pool.
like below
01 ABC
02 ACB
03 BCA
04 CAB
in module pool drop down box element name is RQGM-VALUE.
Problem is what ever the value is select in the drop down box from above element RQGM-VALUE is not filling any value.
i need to capture the value selected in the drop down box and pass it to another variable.Hi,
Refer this standard code. Your issue will be resolve.
REPORT demo_dynpro_dropdown_listbox.
TYPE-POOLS vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
DATA: wa_spfli TYPE spfli,
ok_code TYPE sy-ucomm,
save_ok TYPE sy-ucomm.
TABLES demof4help.
name = 'DEMOF4HELP-CONNID'.
CALL SCREEN 100.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE init_listbox OUTPUT.
CLEAR demof4help-connid.
SELECT connid cityfrom cityto deptime
FROM spfli
INTO CORRESPONDING FIELDS OF wa_spfli
WHERE carrid = demof4help-carrier2.
value-key = wa_spfli-connid.
WRITE wa_spfli-deptime TO value-text USING EDIT MASK '__:__:__'.
CONCATENATE value-text
wa_spfli-cityfrom
wa_spfli-cityto
INTO value-text SEPARATED BY space.
APPEND value TO list.
ENDSELECT.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE.
MODULE user_command_100.
save_ok = ok_code.
CLEAR ok_code.
IF save_ok = 'CARRIER' AND NOT demof4help-carrier2 IS INITIAL.
LEAVE TO SCREEN 200.
ELSE.
SET SCREEN 100.
ENDIF.
ENDMODULE.
MODULE user_command_200.
save_ok = ok_code.
CLEAR ok_code.
IF save_ok = 'SELECTED'.
MESSAGE i888(sabapdocu) WITH text-001 demof4help-carrier2
demof4help-connid.
ENDIF.
ENDMODULE. -
Question: My computer shuts down while I am pausing briefly during use.. first display drop down box "RESTART, SLEEP, CANCEL, SHUTDOWN" warns me of shutdown coming.. If I do not hit cancel immediately, computer shuts down and I have to employ start up procedure each time.. very annoying.. I must admit that I am a novice user and suspect that there is some simple setting that I am overlooking.. however, I have gone through all the relevant settings in Apple System Preferences and cannot connect with one that solves this problem.. Any help greatly appreciated
I think it's time to buy a new battery
-
How to use AX1 for wireless audio and Time Capsule simultaneously?
I am trying AirFoil to Stream Pandora (Safari) to an amplifier and speakers in the next room connected to an older Airport Express.
I can play iTunes 11.0.1 (on a MacMini 2.26 GHz running 10.6.8) to this older Airport Express 802.11g (before N came out - Is this called AX1st?) with the audio out the Express connected to my amplifier and speakers and wirelessly play my music. To do this I have to choose the Airport Express as my network device which means I loose my Time Capsule, which is the device with my internet connection.
Can you tell me how to stay on the internet with Time Capsule and stream to this Airport Express?
If I try to extend to this Airport Express I get an error message: "The Network You Selected cannot be extended." (I don't know if that is a "g" "n" thing or what?)
Do I need a newer Airport Express, or a Netgear or how to get Pandora to an amplifier in a different room, wirelessly? Then the question will be, how to do this to three different amplifiers in three different rooms.How do I
Make your Express 'join' your Time Capsule's WiFi network in AirPort Utility. This will work wirelessly however your Express will not function as an extender in this mode.
I'm Using Airport Utiity 5.6.1
In AU in "Aiport / WIreless tab" I hoped it would be as simple as the word 'Join' showing in the Wireless Mode drop down. But it does not. -
Love full screen view, but my file information and data are showing along the footer. How do I change me settings so this doesn't show?
Thanks!!!!Anne, didn't the answers Frank and I gave in the other tread work? See:
Re: How do I turn of the focus points in Aperture when viewing a photo in a non-thumbnail view? Thanks!
Or did you want to know something differently? -
How to use the palette or drag and drop functions in netbean?
Is there anyone who can help me out on using drag and drop function in netbean to design GUI inteface..??
Is palette is the tool that can be used to drag and drop.??
thank you in advance.I actually really like the GUI builder in netbeans. I used to be a big eclipse user so I am very familiar with coding GUIs by hand, and most of what I do involves GUI's or at least swing.
At first I hated netbeans, I hated that I couldn't edit the code most. Then I decided to take a deep breath and really examine the issue. What I discovered is that most of the edits I wanted to make but couldn't really weren't the right way to be doing it in the first place, for the rest the code is actually really easy to change you just have to know how.
Now my palette is huge, probably about 250 objects in it organized into sections that work for me. Basically if I want a object to do something that is not already in the palette I simply write a new object and add it to the palette. I started small like with rounded buttons/progress bars, and as I got comfortable I now have some fairly advanced objects like grids, isometric grids, alpha composits, an animated hourglass countdown timer, and an animated "loading/activity" indicator that is not tied to a progress indicator.
The main reason I stuck with the netbeans drag and drop GUI builder is it's layout manager is really a very nice layout manager, you couldn't pay me enough to go back to eclipse or codeing GUIs by hand, as I can now do in one day what used to take me several weeks.
So what I am saying is stick with netbeans and the drag and drop, it sucks at first, but once you get to a point where you are comfortable with it and adding to the palette it will become a great tool.
JSG -
How to auto populate a field based on drop down list unless specific item is selected
Hi all,
Apologies if I have posted this in the wrong area but I am new to Adobe LiveCycle, JavaScript and these forums.
I am trying to build an Acrobat form using LiveCycle but am having trouble with the drop down lists.
Inititaly I simply wanted to populate fields in one table based on the selection of a corresponding drop down list in another table.
I used the following code and it worked fine:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The problem is that now I want the above code to work UNLESS one of the items in the dropdown list is specifically selected in which case I want the text box in the other table to display a message such as "Enter details in the field below".
I have tried to create an If Else statement using the following code:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*].Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[*].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
if (fFrom.item(i).rawvalue = "Option 3"){
fTo.item(i).rawValue = "Enter details in the field below";
else {
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
The code now populates the field with "Enter the details in the field below" no matter what item I select from the dropdown list.
Your help is greatly appreciated.
Cheers,
ozzy_qFollow Up:
Ok so ive changed things up a bit and have had some more success.
I have used a Switch statement in my For loop to perform different actions based on the item selected.
The code looks like this:
Workbook.Content.Table1.Row3.AppropriationDetails.Row4.Cell1::change - (JavaScript, client)
var fFrom = xfa.resolveNodes("Workbook.Content.Table1.Row3.AppropriationDetails[*] .Row4.Cell1");
var fTo = xfa.resolveNodes("Workbook.Content.Table2.Row3.AppropriationDetails[* ].Row4.Cell1");
for (var i=0; i <= fFrom.length-1; i++) {
switch (fFrom.item(i).rawValue)
case "Option 3":
fTo.item(i).rawValue = "Enter the details in the field below";
break;
default:
fTo.item(i).rawValue = fFrom.item(i).boundItem(xfa.event.newText);
break;
This code solves my problem but has thrown up a new issue:
When i select Option 1 or 2 from the dropdown list the change in the text field is instantaneous, however if I select Option 3 it wont appear in the text field until I either select Option 3 a second time or select another item. Its as if the text field is a selction behind what I have enterd in the dropdown list.
Any thoughts? -
How do i get "save as" on my drop down menu
I just got a mac. I am extremely new to this and realized there isn't a save as feature under the file menu. I learned that you must press option and it will appear. Is there anyway I can keep the "save as" permanently on the drop down?? Thanks!!
Pages 09 (4.3) has no Duplicate command on its menu. with or without the option key depressed.
Pages 5.2 also has no Duplicate command in its menu, with or without the option key depressed.
I believe that yours has so, are you using a different version, or not using Mavericks (as I am)
Why the differences? -
How to use "GET" to fetch data and insert it in Edge?
I have a compostion in which I need to insert a name with "GET". How can I do that. This is new territory to me,
Json data type would be an ideal option.
jquery reference - http://api.jquery.com/jQuery.getJSON/
Nice example here rom gotoandlearn - http://www.gotoandlearn.com/play.php?id=168
Darrell
Maybe you are looking for
-
How do I change the "trash" icon to "archive" icon in email on my iPhone using iOS7?
How do I change the "Trash" icon to "Archive" icon as the default setting in email using iPhone iOS7?
-
[SOLVED] Arch won't mount my hard drives correctly, problems at boot.
Sometimes (only sometimes) Arch Linux will have an error during bootup because my Linux drive gets mounted as sdb instead of sda. My NTFS Sata storage drives gets mounted in its place as sda. When this happens, Arch Linux will stop booting at the "ch
-
File path validation in the background fails - Urgent
Hi, my program is to download files in the presentation server. so iam validating the file path using method CALL METHOD cl_gui_frontend_services=>directory_exist but when i execute the program in the back ground its giving dump with a runtime error
-
How to modify PDF print template in Portal..
Hi, we are running BI and Portal (NW 7.0, SP14). In the portal we enables the BI queries printing in PDF, but as far we use standard web template. Now i copied the web template and want to add new Fields to the PDF document, such as like Q
-
I have 80 classic and a nano. The classic says corrupted, I reformatted and
The nano seems fine. The classic always states corrupted need to reformat.I reformat or reboot then wipes out everything. When I try to sync it syncs from nano and also freezes playing songs. Then goes back to being corrupted. Can anyone please help?