Proper form for Go To Folder
I'm trying to take advantage of the ability to insert a full path to go to particular location in an open/save dialog. I have my script executing a shift-command-G, and then pasting in a POSIX path, i.e.: Macintosh HD/Users/jeffrey ..etc.
But no matter what path I enter, it says Folder not found. This is for Documents, Desktop, and even Users, and Macintosh HD itself.
I have even tried putting " ' " around the string to account for Macintosh HD: 'Macintosh HD'.
That hasn't worked either.
What am I doing wrong?
Hi, Pierre--
I actually found what I was doing wrong. menu 1 refers to the first menu (hierarchical) of the Insert menu
Here's the script as I now have it. I tried it first as:
set the destination_file to "/Users/jeffrey/Downloads/jotts/mp3s/49de-b3a1-e4b3b6f7c2e0.mp3"
activate application "FileMaker Pro Advanced"
delay 0.2
tell application "System Events"
tell process "FileMaker Pro Advanced"
click menu item "QuickTime…" of menu 1 of menu bar item "Insert" of menu bar 1
delay 0.2
tell window 1
open destination_file
end tell
end tell
end tell
But it seems no matter how I do a straight Open command, it just opens the file in itunes.
So then I tried it the brute force way:
set the destination_file to "/Users/jeffrey/Downloads/jotts/mp3s/49de-b3a1-e4b3b6f7c2e0.mp3"
activate application "FileMaker Pro Advanced"
delay 0.2
tell application "System Events"
tell process "FileMaker Pro Advanced"
click menu item "QuickTime…" of menu 1 of menu bar item "Insert" of menu bar 1
delay 0.2
tell window 1
keystroke "g" using {command down, shift down}
repeat until exists sheet 1
delay 0.2
end repeat
end tell
tell sheet 1
set value of text field 1 to destination_file
click button "Go"
end tell
end tell
end tell
This works as far as opening the right open/save dialog (Insert-->QuickTime...), and it also then opens the Go To folder sheet. But now I'm getting this error sheet (which is in fact a sheet, as it is a standard OS open/save dialog.
error "System Events got an error: Can’t get sheet 1 of process \"FileMaker Pro Advanced\". Invalid index." number -1719 from sheet 1 of process "FileMaker Pro Advanced"
So again, I'm confused.
Similar Messages
-
I have purchased Adobe XI Pro and created a form for entering bowling scores to submit to newspaper for my high school team. I can not figure out how to get pdf's into my documents folder on my iPad so that I can access the files in bowling alleys where I do not have a Wi-Fi connections. I need to be able access files without going to acrobat.com. Help!!!@
Post the PDF files to a web site. The browse to them in Safari on the iPad. When you Open the files specify the Open to occur in Adobe Reader. Then you can have/Save them in your Documents folder on the iPad. An iPad has limited access to files otherwise.
-
How to create a Payment Form for access to multiple secure zones
I'm trying to create a Payment Form that allows the user to select from a dropdown of videos, each of which represents a secure zone page with an embedded video.
What I can't figure out -- and tech chat can't help -- is how to redirect the user to the correct secure zone for the video they purchased.
Videos are are streaming, vimeo embeds, not downloads.
Anyone know how to do this? Can post link to test form if you need it.
Thanks!
jerryHi,
This can be done for already available list. Have a look at the following steps:
Create an Empty SharePoint Project, then right click the project, add SharePoint “Layouts” Mapped Folder.
Right click the project name, add New item Application Page, then add the custom code there.
Under Features, add a feature, right click the added feature then add an event receiver, override the FeatureActivated method to set the new edit/new form as the default form.
How to set new form as default form:
SPList lstTest = web.Lists["Shared Documents"];
string newUrl =
string.Format("layouts/NewEditForm.aspx", web.ServerRelativeUrl, lstTest.RootFolder.Url);
var form = web.GetFile(newUrl);
if (form !=
null && form.Exists)
//string newFomrUrl = lstTest.DefaultEditFormUrl.Replace("EditForm.aspx", "docEditForm.aspx");
lstTest.DefaultEditFormUrl = newUrl;
lstTest.Update();
For more information, see
http://community.bamboosolutions.com/blogs/sharepoint-2010/archive/2011/05/12/sharepoint-2010-cookbook-how-to-create-a-customized-list-edit-form-for-development-in-visual-studio-2010.aspx
To add a custom list form, the best way I think is using SharePoint Designer 2010, it’s very fast.
Regards,
Kelly Chen -
Can I set up a pro forma for multiple images
Hi all
Well I am a newbie to Keynote and I am really enjoying using it.
I am trying to set up a pro forma for class photos at a school, the photos have been handed to me by the teachers but are all slightly different sizes.
My question is can I set up some sort of master document where I can place the photos (head shots) of the students with their names under them ready for a keynote display and have the photos all the same size without editing them separately.
I need to be able to remove photos occasionally too (ie if they are absent etc) so would need it to be a 'changeable' master rather than a screen shot. The amount of students in each class varies from 15 to 29 so I would need to accommodate the 29 with names under them and a heading somewhere on the page.
Is it doable? Do I do it straight into the keynote or onto a pages document first?
Thanks in advance for any help advice you can give.
Regards
AlithesteThe Mac OS X Mail application has a "Junk" function that works locally, on the Mac, and just puts emails from previously designated "junk" addresses into a separete folder, so you don't have to wade thru all that spam in your Inbox. It's a very elegant and simple, local solution, that I dearly miss on iOS.
I did submit a request for it at Apple Feedback page.
http://www.apple.com/feedback/ -
Outlook 2013 with Exchange Server - Changed custom form for contacts is not shown
Hello,
Our infrastructure:
Exchange Server 2010
Outlook 2010
Outlook 2013
Windows 7 Pro, Windows 8 Pro and Windows 8.1 Pro
The situation:
We've used an old custom form for contacts, worked perfectly fine
I've updated the form (adding some new custom fields and checkboxes) using Outlook 2013 and publishing the form (with a new name) to the Exchange folder
I've set the form as default form in our contacts folder
I've used this Script to set the new form for the existing contacts and the name of the new form is saved correctly
BUT if I open a contact in our Exchange contacts folder, Outlook 2013 (Outlook 2010) still shows the old form
Steps I've taken so far:
Cleared Outlook forms cache
Repeated the above steps 1-4 in Outlook 2010
Switched Cached Exchange Mode off and back on
Allowed Scripts in Trust Center Settings
Used a new clean Windows installation with a new Outlook 2013 installation
Used different Exchange users on different systems, but some behavior when opening contacts
I'm out of options I can think of, so maybe somebody else has some new view on this problem.
Thank you very much in advance!
Greetings,
KarlHi,
Is the Exchange folder in which the custom form is published available to all users?
From the description, the script used to work for the old custom form, correct? Which version of Outlook did you use with the old custom contact form? Outlook 2010/Outlook 2013 or an earlier version? If you used the script with an earlier version of Outlook,
we can't make sure it will still work with Outlook 2010/Outlook 2013.
In addition we may also try creating a new contact form and test the steps to see if it will work.
Please let me know the result.
Regards,
Steve Fan
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs.
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Error trying to convert float to expanded form for a check application
I am writing a program to generate a check, but when it tries to parse the Float (netpay) into a String in expanded form (e.g. 1.23 becomes 1 dollar and twenty-three cents) it throws weird arrayOutOfBounds exceptions
* Check.java
* Created on January 23, 2008, 9:55 AM
package payrollapplication;
public class Check extends javax.swing.JFrame {
public Employee emp;
String expanded;
/** Creates new form Check */
boolean debug = true;
public Check() {
initComponents();
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
date = new javax.swing.JLabel();
jPanel1 = new javax.swing.JPanel();
name = new javax.swing.JLabel();
amtexpanded = new javax.swing.JLabel();
amtnum = new javax.swing.JLabel();
empid = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setTitle("EMP Name Here");
setAlwaysOnTop(true);
setCursor(new java.awt.Cursor(java.awt.Cursor.CROSSHAIR_CURSOR));
setResizable(false);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowActivated(java.awt.event.WindowEvent evt) {
formWindowActivated(evt);
date.setText("DATE");
jPanel1.setBackground(new java.awt.Color(102, 102, 0));
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 429, Short.MAX_VALUE)
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 62, Short.MAX_VALUE)
name.setText("NAME");
amtexpanded.setText("AMT EXPANDED");
amtnum.setText("AMT #");
empid.setText("EMPID");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addComponent(amtexpanded, javax.swing.GroupLayout.DEFAULT_SIZE, 342, Short.MAX_VALUE))
.addComponent(name, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 352, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(amtnum, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(date, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)
.addComponent(empid, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
.addContainerGap())
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(14, 14, 14)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(date)
.addComponent(name))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(amtnum)
.addComponent(amtexpanded, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(empid)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
pack();
}// </editor-fold>
private void formWindowActivated(java.awt.event.WindowEvent evt) {
initDisplay(); //Computes the expanded form of the number and fills the windows with information
amtexpanded.setText(expanded);
* @param args the command line arguments
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Check().setVisible(true);
public void initDisplay() {
try {
amtnum.setText("$"+emp.netpay); //Fill in the net pay
name.setText(""+emp.fname+" "+emp.mname+" "+emp.lname+" "+emp.suffix); //Fill in the name
System.out.println("NOT YET IMPLEMENTED");
expanded = "";
//begin to compute the expanded form
//determine the length of the left side of the decimal
expanded = emp.netpay+"";
String[] split = expanded.split(".");
int length = split[0].length();
//Now we compute the first half of the number
int wholeLength = split[0].length();
char[] arr = split[0].toCharArray(); //create the character array
expanded = ""; //Clear it
if(length == 3) {
System.out.println("Length of 3, working...");
//Assume we are starting at the one thousands
//Since 0 is 1, we need to test for 3 for 1,000s not 4
switch(arr[3]) {
case '1': expanded = "One Thousand ";
case '2': expanded = "Two Thousand ";
case '3': expanded = "Three Thousand ";
case '4': expanded = "Four Thousand ";
case '5': expanded = "Five Thousand ";
case '6': expanded = "Six Thousand ";
case '7': expanded = "Seven Thousand ";
case '8': expanded = "Eight Thousand ";
case '9': expanded = "Nine Thousand ";
switch(arr[2]) {
case '1': expanded = expanded + "One-Hundred ";
case '2': expanded = expanded + "Two-Hundred ";
case '3': expanded = expanded + "Three-Hundred ";
case '4': expanded = expanded + "Four-Hundred ";
case '5': expanded = expanded + "Five-Hundred ";
case '6': expanded = expanded + "Six-Hundred ";
case '7': expanded = expanded + "Seven-Hundred ";
case '8': expanded = expanded + "Eight-Hundred ";
case '9': expanded = expanded + "Nine-Hundred ";
switch(arr[1]) {
case '0': {
switch(arr[0]) {
case '0': expanded = expanded + "";
case '1': expanded = expanded + "and One";
case '2': expanded = expanded + "and Two";
case '3': expanded = expanded + "and Three";
case '4': expanded = expanded + "and Four";
case '5': expanded = expanded + "and Five";
case '6': expanded = expanded + "and Six";
case '7': expanded = expanded + "and Seven";
case '8': expanded = expanded + "and Eight";
case '9': expanded = expanded + "and Nine";
case '1': {
switch(arr[0]) {
case '0': expanded = expanded + "and Ten";
case '1': expanded = expanded + "and Eleven";
case '2': expanded = expanded + "and Twelve";
case '3': expanded = expanded + "and Thirteen";
case '4': expanded = expanded + "and Fourteen";
case '5': expanded = expanded + "and Fifteen";
case '6': expanded = expanded + "and Sixteen";
case '7': expanded = expanded + "and Seventeen";
case '8': expanded = expanded + "and Eighteen";
case '9': expanded = expanded + "and Nineteen";
case '2': {
switch(arr[0]) {
case '0': expanded = expanded + "and Twenty";
case '1': expanded = expanded + "and Twenty-One";
case '2': expanded = expanded + "and Twenty-Two";
case '3': expanded = expanded + "and Twenty-Three";
case '4': expanded = expanded + "and Twenty-Four";
case '5': expanded = expanded + "and Twenty-Five";
case '6': expanded = expanded + "and Twenty-Six";
case '7': expanded = expanded + "and Twenty-Seven";
case '8': expanded = expanded + "and Twenty-Eight";
case '9': expanded = expanded + "and Twenty-Nine";
case'3': {
switch(arr[0]) {
case '0': expanded = expanded + "and Thirty";
case '1': expanded = expanded + "and Thirty-One";
case '2': expanded = expanded + "and Thirty-Two";
case '3': expanded = expanded + "and Thirty-Three";
case '4': expanded = expanded + "and Thirty-Four";
case '5': expanded = expanded + "and Thirty-Five";
case '6': expanded = expanded + "and Thirty-Six";
case '7': expanded = expanded + "and Thirty-Seven";
case '8': expanded = expanded + "and Thirty-Eight";
case '9': expanded = expanded + "and Thirty-Nine";
case '4': {
switch(arr[0]) {
case '0': expanded = expanded + "and Fourty";
case '1': expanded = expanded + "and Fourty-One";
case '2': expanded = expanded + "and Fourty-Two";
case '3': expanded = expanded + "and Fourty-Three";
case '4': expanded = expanded + "and Fourty-Four";
case '5': expanded = expanded + "and Fourty-Five";
case '6': expanded = expanded + "and Fourty-Six";
case '7': expanded = expanded + "and Fourty-Seven";
case '8': expanded = expanded + "and Fourty-Eight";
case '9': expanded = expanded + "and Fourty-Nine";
case '5': {
switch(arr[0]) {
case '0': expanded = expanded + "and Fifty";
case '1': expanded = expanded + "and Fifty-One";
case '2': expanded = expanded + "and Fifty-Two";
case '3': expanded = expanded + "and Fifty-Three";
case '4': expanded = expanded + "and Fifty-Four";
case '5': expanded = expanded + "and Fifty-Five";
case '6': expanded = expanded + "and Fifty-Six";
case '7': expanded = expanded + "and Fifty-Seven";
case '8': expanded = expanded + "and Fifty-Eight";
case '9': expanded = expanded + "and Fifty-Nine";
case '6': {
switch(arr[0]) {
case '0': expanded = expanded + "and Sixty";
case '1': expanded = expanded + "and Sixty-One";
case '2': expanded = expanded + "and Sixty-Two";
case '3': expanded = expanded + "and Sixty-Three";
case '4': expanded = expanded + "and Sixty-Four";
case '5': expanded = expanded + "and Sixty-Five";
case '6': expanded = expanded + "and Sixty-Six";
case '7': expanded = expanded + "and Sixty-Seven";
case '8': expanded = expanded + "and Sixty-Eight";
case '9': expanded = expanded + "and Sixty-Nine";
case '7': {
switch(arr[0]) {
case '0': expanded = expanded + "and Seventy";
case '1': expanded = expanded + "and Seventy-One";
case '2': expanded = expanded + "and Seventy-Two";
case '3': expanded = expanded + "and Seventy-Three";
case '4': expanded = expanded + "and Seventy-Four";
case '5': expanded = expanded + "and Seventy-Five";
case '6': expanded = expanded + "and Seventy-Six";
case '7': expanded = expanded + "and Seventy-Seven";
case '8': expanded = expanded + "and Seventy-Eight";
case '9': expanded = expanded + "and Seventy-Nine";
case '8': {
switch(arr[0]) {
case '0': expanded = expanded + "and Eighty";
case '1': expanded = expanded + "and Eighty-One";
case '2': expanded = expanded + "and Eighty-Two";
case '3': expanded = expanded + "and Eighty-Three";
case '4': expanded = expanded + "and Eighty-Four";
case '5': expanded = expanded + "and Eighty-Five";
case '6': expanded = expanded + "and Eighty-Six";
case '7': expanded = expanded + "and Eigthy-Seven";
case '8': expanded = expanded + "and Eighty-Eight";
case '9': expanded = expanded + "and Eighty-Nine";
case '9': {
switch(arr[0]) {
case '0': expanded = expanded + "and Ninety";
case '1': expanded = expanded + "and Ninety-One";
case '2': expanded = expanded + "and Ninety-Two";
case '3': expanded = expanded + "and Ninety-Three";
case '4': expanded = expanded + "and Ninety-Four";
case '5': expanded = expanded + "and Ninety-Five";
case '6': expanded = expanded + "and Ninety-Six";
case '7': expanded = expanded + "and Ninety-Seven";
case '8': expanded = expanded + "and Ninety-Eight";
case '9': expanded = expanded + "and Ninety-Nine";
//Now we move down the length, 2, 1 ,
if(length == 2) {
System.out.println("length of 2, working...");
switch(arr[2]) {
case '1': expanded = expanded + "One-Hundred ";
case '2': expanded = expanded + "Two-Hundred ";
case '3': expanded = expanded + "Three-Hundred ";
case '4': expanded = expanded + "Four-Hundred ";
case '5': expanded = expanded + "Five-Hundred ";
case '6': expanded = expanded + "Six-Hundred ";
case '7': expanded = expanded + "Seven-Hundred ";
case '8': expanded = expanded + "Eight-Hundred ";
case '9': expanded = expanded + "Nine-Hundred ";
switch(arr[1]) {
case '0': {
switch(arr[0]) {
case '0': expanded = expanded + "";
case '1': expanded = expanded + "and One";
case '2': expanded = expanded + "and Two";
case '3': expanded = expanded + "and Three";
case '4': expanded = expanded + "and Four";
case '5': expanded = expanded + "and Five";
case '6': expanded = expanded + "and Six";
case '7': expanded = expanded + "and Seven";
case '8': expanded = expanded + "and Eight";
case '9': expanded = expanded + "and Nine";
case '1': {
switch(arr[0]) {
case '0': expanded = expanded + "and Ten";
case '1': expanded = expanded + "and Eleven";
case '2': expanded = expanded + "and Twelve";
case '3': expanded = expanded + "and Thirteen";
case '4': expanded = expanded + "and Fourteen";
case '5': expanded = expanded + "and Fifteen";
case '6': expanded = expanded + "and Sixteen";
case '7': expanded = expanded + "and Seventeen";
case '8': expanded = expanded + "and Eighteen";
case '9': expanded = expanded + "and Nineteen";
case '2': {
switch(arr[0]) {
case '0': expanded = expanded + "and Twenty";
case '1': expanded = expanded + "and Twenty-One";
case '2': expanded = expanded + "and Twenty-Two";
case '3': expanded = expanded + "and Twenty-Three";
case '4': expanded = expanded + "and Twenty-Four";
case '5': expanded = expanded + "and Twenty-Five";
case '6': expanded = expanded + "and Twenty-Six";
case '7': expanded = expanded + "and Twenty-Seven";
case '8': expanded = expanded + "and Twenty-Eight";
case '9': expanded = expanded + "and Twenty-Nine";
case'3': {
switch(arr[0]) {
case '0': expanded = expanded + "and Thirty";
case '1': expanded = expanded + "and Thirty-One";
case '2': expanded = expanded + "and Thirty-Two";
case '3': expanded = expanded + "and Thirty-Three";
case '4': expanded = expanded + "and Thirty-Four";
case '5': expanded = expanded + "and Thirty-Five";
case '6': expanded = expanded + "and Thirty-Six";
case '7': expanded = expanded + "and Thirty-Seven";
case '8': expanded = expanded + "and Thirty-Eight";
case '9': expanded = expanded + "and Thirty-Nine";
case '4': {
switch(arr[0]) {
case '0': expanded = expanded + "and Fourty";
case '1': expanded = expanded + "and Fourty-One";
case '2': expanded = expanded + "and Fourty-Two";
case '3': expanded = expanded + "and Fourty-Three";
case '4': expanded = expanded + "and Fourty-Four";
case '5': expanded = expanded + "and Fourty-Five";
case '6': expanded = expanded + "and Fourty-Six";
case '7': expanded = expanded + "and Fourty-Seven";
case '8': expanded = expanded + "and Fourty-Eight";
case '9': expanded = expanded + "and Fourty-Nine";
case '5': {
switch(arr[0]) {
case '0': expanded = expanded + "and Fifty";
case '1': expanded = expanded + "and Fifty-One";
case '2': expanded = expanded + "and Fifty-Two";
case '3': expanded = expanded + "and Fifty-Three";
case '4': expanded = expanded + "and Fifty-Four";
case '5': expanded = expanded + "and Fifty-Five";
case '6': expanded = expanded + "and Fifty-Six";
case '7': expanded = expanded + "and Fifty-Seven";
case '8': expanded = expanded + "and Fifty-Eight";
case '9': expanded = expanded + "and Fifty-Nine";
case '6': {
switch(arr[0]) {
case '0': expanded = expanded + "and Sixty";
case '1': expanded = expanded + "and Sixty-One";
case '2': expanded = expanded + "and Sixty-Two";
case '3': expanded = expanded + "and Sixty-Three";
case '4': expanded = expanded + "and Sixty-Four";
case '5': expanded = expanded + "and Sixty-Five";
case '6': expanded = expanded + "and Sixty-Six";
case '7': expanded = expanded + "and Sixty-Seven";
case '8': expanded = expanded + "and Sixty-Eight";
case '9': expanded = expanded + "and Sixty-Nine";
case '7': {
switch(arr[0]) {
case '0': expanded = expanded + "and Seventy";
case '1': expanded = expanded + "and Seventy-One";
case '2': expanded = expanded + "and Seventy-Two";
case '3': expanded = expanded + "and Seventy-Three";
case '4': expanded = expanded + "and Seventy-Four";
case '5': expanded = expanded + "and Seventy-Five";
case '6': expanded = expanded + "and Seventy-Six";
case '7': expanded = expanded + "and Seventy-Seven";
case '8': expanded = expanded + "and Seventy-Eight";
case '9': expanded = expanded + "and Seventy-Nine";
case '8': {
switch(arr[0]) {
case '0': expanded = expanded + "and Eighty";
case '1': expanded = expanded + "and Eighty-One";
case '2': expanded = expanded + "and Eighty-Two";
case '3': expanded = expanded + "and Eighty-Three";
case '4': expanded = expanded + "and Eighty-Four";
case '5': expanded = expanded + "and Eighty-Five";
case '6': expanded = expanded + "and Eighty-Six";
case '7': expanded = expanded + "and Eigthy-Seven";
case '8': expanded = expanded + "and Eighty-Eight";
case '9': expanded = expanded + "and Eighty-Nine";
case '9': {
switch(arr[0]) {
case '0': expanded = expanded + "and Ninety";
case '1': expanded = expanded + "and Ninety-One";
case '2': expanded = expanded + "and Ninety-Two";
case '3': expanded = expanded + "and Ninety-Three";
case '4': expanded = expanded + "and Ninety-Four";
case '5': expanded = expanded + "and Ninety-Five";
case '6': expanded = expanded + "and Ninety-Six";
case '7': expanded = expanded + "and Ninety-Seven";
case '8': expanded = expanded + "and Ninety-Eight";
case '9': expanded = expanded + "and Ninety-Nine";
if(length == 1) {
System.out.println("Length of 1 working....");
switch(arr[1]) {
case '0': {
switch(arr[0]) {
case '0': expanded = expanded + "";
case '1': expanded = expanded + "and One";
case '2': expanded = expanded + "and Two";
case '3': expanded = expanded + "and Three";
case '4': expanded = expanded + "and Four";
case '5': expanded = expanded + "and Five";
case '6': expanded = expanded + "and Six";
case '7': expanded = expanded + "and Seven";
case '8': expanded = expanded + "and Eight";
case '9': expanded = expanded + "and Nine";
case '1': {
switch(arr[0]) {
case '0': expanded = expanded + "and Ten";
case '1': expanded = expanded + "and Eleven";
case '2': expanded = expanded + "and Twelve";
case '3': expanded = expanded + "and Thirteen";
case '4': expanded = expanded + "and Fourteen";
case '5': expanded = expanded + "and Fifteen";
case '6': expanded = expanded + "and Sixteen";
case '7': expanded = expanded + "and Seventeen";
case '8': expanded = expanded + "and Eighteen";
case '9': expanded = expanded + "and Nineteen";
case '2': {
switch(arr[0]) {
case '0': expanded = expanded + "and Twenty";
case '1': expanded = expanded + "and Twenty-One";
case '2': expanded = expanded + "and Twenty-Two";
case '3': expanded = expanded + "and Twenty-Three";
case '4': expanded = expanded + "and Twenty-Four";
case '5': expanded = expanded + "and Twenty-Five";
case '6': expanded = expanded + "and Twenty-Six";
case '7': expanded = expanded + "and Twenty-Seven";
case '8': expanded = expanded + "and Twenty-Eight";
case '9': expanded = expanded + "and Twenty-Nine";
case'3': {
switch(arr[0]) {
case '0': expanded = expanded + "and Thirty";
case '1': expif(length == 3) {
System.out.println("Length of 3, working...");
//Assume we are starting at the one thousands
//Since 0 is 1, we need to test for 3 for 1,000s not 4
switch(arr[3]) {Arrays in Java start at index zero, so if the length of an array is 3, then the valid indices are 0,1 and 2.
You also can make the whole thing much cleaner with using the way things are phrased in English - you say "one million, one hundred and fifty thousand, two hundred and seventy six pounds, thirty seven pence", so if you write a routine which converts an integer between 0 (inclusive) and 1000 (exclusive), and call that for the millions, thousands, units and cents in turn. You also might want to use localized strings in an array instead of coding everything as a sequence of switch statements. -
Custom tabular form for multi-row not saving data
Ok, before anyone asks, yes, I did read the how-to:-)
I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
SQL to generate the tablular form...
SELECT x.sak_release_db
, x.sak_object
, x.sak_release
, x.sak_participant
, x.sak_csr
FROM
(SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
, htmldb_item.popupkey_from_query(2, sak_object,
'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
FROM system_object a
, database_table b
WHERE a.sak_object = b.sak_object') as sak_object
, htmldb_item.hidden(4,sak_release) sak_release
, htmldb_item.popupkey_from_query(5, sak_participant,
'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
, htmldb_item.popupkey_from_query(7, sak_csr,
'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
FROM release_db_xref
UNION ALL
SELECT htmldb_item.hidden(1,NULL) sak_release_db
, htmldb_item.popupkey_from_query(2, NULL,
'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
FROM system_object a
, database_table b
WHERE a.sak_object = b.sak_object') as sak_object
, htmldb_item.hidden(4,NULL) sak_release
, htmldb_item.popupkey_from_query(5, NULL,
'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
, htmldb_item.popupkey_from_query(7, NULL,
'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
FROM dual) x
Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
begin
:P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
:P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
:P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
end;
Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
-- Update the RELEASE_DB_XREF table
FOR i IN 1..htmldb_application.g_f01.count
LOOP
IF htmldb_application.g_f01(i) IS NOT NULL THEN
UPDATE release_db_xref
SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
, sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
, sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
WHERE sak_release_db = 22;
ELSE
IF htmldb_application.g_f02(i) IS NOT NULL THEN
INSERT INTO release_db_xref
(sak_object
,sak_release
,sak_participant
,sak_csr)
VALUES
(replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
,htmldb_application.g_f04(i)
,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
END IF;
END IF;
END LOOP;Florian,
Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
Some general information about working with checkboxes in tabuar forms can be found here:
http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
Hope this helps,
Marc -
How to read and set Pane value for new adding folder
Hi Experts,
I tried to add a new folder in to a system form as below
Itm = form.Items.Add("UserFolder"), SAPbouiCOM.BoFormItemTypes.it_FOLDER)
form.DataSources.UserDataSources.Add("F_new", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
Dim oFolder As SAPbouiCOM.Folder
oFolder.DataBind.SetBound(True, "", "F_new")
oFolder.GroupWith("138")
My quester is what is the panelevel for this new folder? And how to set value to panelevel for this folder.
If we design a folder from Screen Painter, we can set the pane value manually, can we do this from code?
Thanks a lot
TimHello,
You do not have to set any panelevel for your folder, if you would like to display it all the panelevels. (Let's see an example on Item Master data form).
Sales, Purchase, Inventory etc tabs (folders) are always visible, there is no panelevel set for them.
To change between panelevels, you can trigger et item pressed event, and before_action = false, then you may change the panelevel of the form poperly.
For initially you may use the Folder.Select() command to show the default panelevel
>The problem is here, it looks like oFrom.Panelevel property can only accept integer value, so how can I know what's the pane level number for my folder?
Do not set panelevel for your folders, you should drive your form's panelevel based on a selection tree:
To see clear, please check the following code in the help sample: CompexForm
C:Program FilesSAPMásolat - SAP Business One SDKSamplesCOM UIVB.NET07.ComplexForm2003
to make it clear:
'// Adding Folder items
For i = 1 To 2
oItem = oForm.Items.Add("Folder" & i, SAPbouiCOM.BoFormItemTypes.it_FOLDER)
oItem.Left = (i - 1) * 100
oItem.Width = 100
oItem.Top = 6
oItem.Height = 19
oFolder = oItem.Specific
'// set the caption
oFolder.Caption = "Folder" & i
oFolder.DataBind.SetBound(True, "", "FolderDS")
If i = 1 Then
oFolder.Select()
Else
oFolder.GroupWith(("Folder" & i - 1))
End If
Next i
This code add 2 folders to the form: and the first (i = 1) is selected.
IN itemevent, the panelevel property of the form is depending from the item you have clicked:
Case SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED
'// Check if the event was raised by one of the Folder items
'// and change the form's pane level
If pVal.ItemUID = "Folder1" Then
oForm.PaneLevel = 1
End If
If pVal.ItemUID = "Folder2" Then
oForm.PaneLevel = 2
End If
Regards
János -
Replace Default "New" / "Edit" Forms for Custom List
Having created a web page that is just simple HTML with JScript to bring it "to life" in SharePoint designer, how can I cause SharePoint 2010 to present this page for the "New" action? Or for the "Edit" action?
This page is not associated with the Master Page/Content paradigm. It is at WebSite/Lists/TheTargetList/TheTargetForm.aspx
When I show the list properties tab for this list in Designer, and go to the "Forms" section (subtitled "Forms are used to display and edit data contained within this list"), and click the "New..." button at the right of
that section's title bar and fill in the Title with the title of my file, I cannot add the file. (The bread crumbs at the top say "Site > Lists and Libraries > ListName > ")
Alternately, I go to the bottom of the tab's page, and select the link "Item" under Content Types (the choices being "Item" and "Folder").
Then the bread crumbs say "Site > Lists and Libraries > ListName > Content Types > Item >"
In the "Forms" section, I try to put the fully qualified name of the page I have created (my ..aspx file) in the "New Form:" or "Edit Form:" areas, after having clicked the "<click to enter text>" links.
This lets me save that change, but destroys the web site's ability to show anything when I try to go to New or Edit — essentially "File not found." The same if I provide only the file name,
not fully qualified.
So, if I have "Site/Lists/List/XYZ.aspx," and if that file is like:
<html>
<head>
<script> . . . </script>
</head>
<body> . . . <br /> . . . </body>
</html>
How can I get this file to be opened as the "New" or "Edit" form for the list?Hi BrianWren ,
According to your description, my understanding is that you want to present a web page as the New Form page.
For achieving your demand, you need to create custom form using Visual Studio instead of SharePoint Designer.
Here is a good blog you can have a look:
http://blog.karstein-consulting.com/2010/12/29/walkthrough-create-custom-sharepoint-2010-list-form-for-deployment-in-a-visual-studio-2010-project/
http://www.sharepointblogs.be/blogs/sebastian/archive/2011/02/08/change-the-standard-forms-of-a-list.aspx
Best Regards,
Eric
Eric Tao
TechNet Community Support -
Installer "RightFax Form for Outlook"
Dear,
I am doing the configuration of the "Cisco Fax Server Version 9.4". I've done the downlad the installers of Cisco's website (because the CD was lost), install and configure the modules and the CUCM (7.1.5.31900-3), but do not know where to find the installer "RightFax Form for Outlook", which contains "RightFax client installation".
I did not find this application on the Internet or Cisco.
So how could I get this installer?
Thanks for the help.
Patrick
ps: I'm using Outlook 2007Hello Pouyan,
You can develop an add-in for employee with an Outlook form region. There is no need to publish a customized form. You can store values in user defined fields which you may parse on the manager's side later. See
Creating Outlook Form Regions in MSDN for more information.
Then you can develop a VBA macro or an add-in for the manager to collect the data from the incoming emails. You can customize the Explorer window adding a window like you did with inspectors to display the information. But in that case there is no trivial
way to get the job done. You need to use Windows API functions. See
Adjacent Windows In Outlook and
Creating Adjacent Windows In Outlook sample project. I have also found the
Additional custom panel in Microsoft Outlook article for you. As an alternative you may consider using third-party tools like Add-in Express. It allows to add custom forms to the Explorer windows in Outlook.
The second way is to show a web page for the folder where you can display the data you need. See
How to programmatically create an Outlook home folder page in the Outlook Today style .
The third way is to use Solutions Module to get the data displayed. See
Programming the Outlook 2010 Solutions Module for more information.
Finally, it can be a single add-in installer or two separate add-ins (for managers and clients). -
Adobe Interactive forms for Managerial self service
Hi All,
We need Adobe Interactive forms for Managerial self service in Portal.
When i goto transaction SFP, and check any of the interactive forms ie ISR_FORM_SPEG for example, and click the Layout button, i get the blank form, even the PDF format shows me a blank page.
Has anyone faced a similar problem? If so, can you please tell me the reason for this error and how to rectify it?
Thanks in advance,
AditiHi Pavan,
Thanks for replying..i found a note (843279) which has a similar problem as mine..it says logon as "DE" and then copy the form . When i do that, i get a popup window asking me userid and password for Adobe configuration services, which means i need to check whether Adobe configuration is proper or not.
Ill do that and see how things proceed.
Thanks,
Aditi -
How to save PDF form to a KM Folder in Portal
Folks,
I have a requirement to save ADOBE Form to KM folder in portal and again access that form for changes.
Thanks,
ManishHi Manish
just a bit of rather high-level input: What you want is possible from a technology point of view, i.e. NetWeaver provides you with all the tools you need, but essentially you need to build an application that does all the things you want from scratch.
Interactive Forms has no standard persistence mechanism for the generated PDF forms, as the way such PDFs are handled differ from app to app, from customer to customer, and NW isn't able to accommodate all wishes. Some of the SAP applications provide mechanisms sich as storing files in KM or Records Mgmt, but this is limited.
You will need an application that
- generates the PDF
- assigns the PDF to a KM folder (after editing?)
- allows the retrieval of the PDF from KM and editing
- presumably, at some point send the data entered in the PDF back to the database (before archiving the PDF permanently?)
So the forms aspect is only one of the important ones, developing on top of KM the other.
Best regards,
Markus Meisl
SAP NetWeaver Product Management -
hi,
am facing a problem deploying a list instance via a feature,
I created the list in the UI with content and views.
Exported the site template as WSP.
Imported into Visual Studio the list instance, pages module and property bags.
Copied into my new solution.
Deploy list instance as a site-collection level scoped feature.
activated the below features :
mylist_ModulesFeature
mylist_ListInstancesFeature
mylist_PropertyBagFeature
List deploys fine with content and views. However, I receive the following error when trying to add a new item: “Unable to find the default new form for list”. The same applies for editing items.
can anyone pls help why i am getting this error ?try these links:
http://tomvangaever.be/blogv2/2010/04/unable-to-find-the-default-new-form-for-list/
http://sharebrad.blogspot.in/2012/08/unable-to-find-default-edit-form-for.html
http://stackoverflow.com/questions/10243131/deploying-a-list-instance-to-sharepoint-2010-error-unable-to-find-the-default-n
https://happiestsharepointminds.wordpress.com/2014/03/01/unable-to-find-the-default-edit-form-for-list-or-unable-to-find-the-default-display-form-for-list/
http://itsolutionsblog.net/sharepoint-problem-with-library-forms-unable-to-create-folder-ore-edit-properties/
http://blogs.technet.com/b/yashgoel-msft/archive/2013/08/30/recreating-default-display-edit-and-new-forms-of-a-list-in-sharepoint-2010-using-powershell.aspx
Please mark answer as correct if it is correct else vote for it if you find it useful -
Attention Anyone that my be able to help PLEASE
I have a client that I am building a website for in Muse and they have a backend system thru "Python" that I am guessing runs their information. So basically im asking is there any way I can create a form for Muse that will integrate with their Python backend system? Have any ideas? I really need a large form that will work with "Python"
Thanks A Bunch!!! DanITBobbyP hi again,
Excel formats are not backward compatible, you need to use the proper driver.
Arthur
MyBlog
Twitter -
What is the proper name for Mac OS? OS X? Apple Mac OS X?
It's a tad bit confusing for me since I am new to Apple.
What do you call it the true name for it?
Apple Mac OS?
OS X?
If I type in OS X It shows all the versions released form Apple.
Like in the snap shot below.
http://i1157.photobucket.com/albums/p600/napninjanx/Snapshots/Untitled_zps2d1aa9 90.png
When I searched for MAC OS it did not show the versions of released OS X for Apple.
Like in the snapshow below.
http://i1157.photobucket.com/albums/p600/napninjanx/Snapshots/2_zpsbae85e49.png
But when I searched on eBay for Snow Leopard it showed the brand name
http://i1157.photobucket.com/albums/p600/napninjanx/Snapshots/3_zpsbcb588ac.png
Then I thought going by brand name and model is the way to know the proper name for it.
I think the proper name for it is Apple Mac OS X that's how you type it in order to know other realses if I am not mistaken.You can call it Mac OS X or OS X and others will know what you mean.
If you click the apple at the left side of the menu bar, About This Mac, you will see OS X so that is what Apple calls it.
Maybe you are looking for
-
Hi All, I am generating the report output in ALV list and downloading in the PDF format. It is working fine. But I am not able to print last line(AS SOME TEXT) on each page of the report. I think the output of report in ALV LIST does not show the END
-
I am running Windows 8. Every time I save a PDF it opens in UserName - AppData - Local - Temp I have tried changing the download location in Firefox. I've also Googled this problem and IE has the same issue - the fix for IE is declaring the site as t
-
Internet Security Warning on every Send/recieve
Hi Experts, We are using self-signed certificate for our server and all the accounts are using POP3/TLS as their account setting. As expected whenever we open Outlook 2007, we get the Internet Security Warning, to which we answer YES and it works per
-
How do I get top of page curl (IDCS4 to SWF doc) to show when inserted into DW?
Is there a way to get the top & bottom of page curls to show on my web page the way they do in the html preview? (With a transparant efffect?) I've attached the SWf file, if that helps. Thanx in advance for any advice.
-
Oracle DataBase server component is in INVALID in 10.2.0.4
Hi I took full RMAN backup from production two node RAC system. Production system is in Oracle 10.2.0.3. I tried to restore the backup in another system which is single node system Oracle 10.2.0.4. I restored and recovered database successfully. When