Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Formula java equivalent

Posted on 2011-02-14
4
1,488 Views
Last Modified: 2013-12-18
Can someone tell me what the java equivalent would be for this button? It does not work on the web. Here is the button code.

"";
person := @Prompt([OkCancelList]; "Name of person or service"; "Select person or service who conducted transaction."; ""; "Person Name 1":"Person Name 2":"Automatic Recurring");
FIELD name := person;

date := @Prompt([OkCancelEdit];"Transaction date";"Type in the transaction date.";"":"");
FIELD entrydate := date;

type := @Prompt([OkCancelList]; "Transaction type"; "Select the transaction."; ""; "Deposit":"Withdrawal");
FIELD transtype := type;

damount := @If(type="Deposit";@Prompt([OkCancelEdit]; "Transaction Amount"; "Type in the transaction amount including decimals if there are cents."; "");0);
FIELD damount := damount;

wamount := @If(type="Withdrawal";@Prompt([OkCancelEdit]; "Transaction Amount"; "Type in the transaction amount including decimals if there are cents."; "");0);
FIELD wamount := @TextToNumber(wamount);
FIELD wamount := 0-wamount;

awardedto := @Prompt([OkCancelList]; "Awarded To"; "Select the entity the money is awarded to."; ""; "David P Schmalzer":"Glenn D Hodges":"Raven Technologies");
FIELD awardedto := awardedto;

descrip := @Prompt([OkCancelEdit]; "Transaction reason/ description"; "Type in the reason or description for the transaction."; "");
FIELD descrip:= descrip;

FIELD hideall := "hideall";

@PostedCommand([FileSave]);
@Prompt([Ok];"Success";"Your document has been created and saved. The document will now close.");

@Command([ViewRefreshFields]);

@Command([FileCloseWindow])
0
Comment
Question by:schmad01
  • 2
4 Comments
 
LVL 46

Expert Comment

by:Sjef Bosman
ID: 34896370
Is this for R7? R8.5.2? Or somewhere in between?

If it were for Notes, I'd suggest you use a dialog box. In R8.5.2 + XPages, you'd better use a Dojo Dialog. I think the exact equivalent of all your code in Java (?? or do you mean JavaScript?) won't be very useful in any version.

Here some client-side JS-tools: http://www.w3schools.com/JS/js_popup.asp
0
 

Author Comment

by:schmad01
ID: 34897264
I am running R8.5.2.
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
ID: 34902787
David! Been a long time!

There;s no direct equivalent for running through a series of basic OS prompts on the web. There are some tools you can use to present a series of questions in sequence, such as hiding and showing parts of a single page, that may come close to what you wnat.

Alternatively, why make it so ocmplicated? Just present a straightforward form with all the fields to fill in, and process it when they click a button at the bottom.
0
 

Author Closing Comment

by:schmad01
ID: 34903059
Hey qwaletee, yes it has. Wasn't sure I'd ever be using Lotus Notes again, but here I am. Skipped from version 6 to 8.5. Wow, lot's of changes! Thanks. Talk to you soon.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Send email and attachment (Lotus notes) 55 248
Event in Notes Form after open and visible 10 222
External emails not coming through 3 111
@Mailsend 3 66
Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question