Button with HTML-Link
Hi!
I've to create buttons on a dynpro, which process the currently installed frontend mail client (zB. Notes, Outlook, etc.) and fill the recipients, subject and mail body dynamically at the end of "PROCESS AFTER INPUT".
The application handling should be like a HTML-Link (for example: <a href="mailto:[email protected]?body=Hello%20Fritz,%0D%0A%0D%0Aich%20wollte%20nur%20sagen,%20dass%20">Mail mit Body</a>).
The solution should work in SAPGui for Windows and SAPGui for HTML.
Does anybody knows a example coding?
Any hints are welcome.
Thanks, happy new year!
Peter Lintner
develop a FM with the following code and call it onclick of a button.
function y_outlook_mail_create.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_SUBJECT) OPTIONAL
*" TABLES
*" EMAIL_BODY STRUCTURE SOLI OPTIONAL
*" ADDRESS_LIST STRUCTURE SOLI OPTIONAL
*" ATTACHMENTS STRUCTURE SOLI OPTIONAL
*" EXCEPTIONS
*" INVALID_PATH
*" DOWNLOAD_FAILED
*" EXECUTION_FAILED
data:
v_translate(2),
it_vbs like soli
occurs 50 with header line,
v_last,
v_vbs_filename like rlgrap-filename,
wf_filename like rlgrap-filename ,
commandline(1000).
*- Prepare a code to translate a quote into a hex-tab
*- so it can then be translated back to 2 double quotes.
concatenate '"' '9' into v_translate.
* CON_HEX-TAB'
append:
'Dim myolapp ' to it_vbs,
'Dim olNamespace ' to it_vbs,
'Dim myItem ' to it_vbs,
'Dim myRecipient ' to it_vbs,
'Dim myAttachments ' to it_vbs,
' ' to it_vbs,
'Set myolapp = CreateObject("Outlook.Application") ' to it_vbs,
'Set olNamespace = myolapp.GetNamespace("MAPI") ' to it_vbs,
'Set myItem = myolapp.CreateItem(olMailItem) ' to it_vbs,
' ' to it_vbs.
*- Translate the body into a single line.
loop at address_list.
concatenate
'Set myRecipient = myItem.Recipients.Add("'
address_list
into it_vbs.
append it_vbs.
endloop.
append:
'myItem.VotingOptions = "Approve;Reject"' to it_vbs.
*- Build the subject line.
concatenate
'myItem.Subject = "'
i_subject
into it_vbs.
append it_vbs.
*- Prepare attachments
append:
'Set myAttachments = myItem.Attachments' to it_vbs.
*- Check if the attachment exists
loop at attachments.
clear wf_filename .
move: attachments-line to wf_filename .
call function 'WS_QUERY'
exporting
filename = wf_filename "ATTACHMENTS
query = 'FE'
exceptions
inv_query = 1
no_batch = 2
frontend_error = 3
others = 4.
if sy-subrc eq 0.
concatenate 'myAttachments.Add("'
attachments
into it_vbs.
append it_vbs.
* ' olByValue, 1, "4th Quarter 1996 Results Chart"'
* append ' olByReference, 1' to it_vbs.
else.
message i017(zz) with
'Could not attach' attachments.
endif.
endloop.
*- Prepare the email body.
clear: v_last, it_vbs.
append it_vbs.
loop at email_body.
at first.
append 'myitem.HTMLbody = _' to it_vbs.
endat.
at last.
v_last = 'X'.
endat.
translate email_body using v_translate.
while sy-subrc eq 0.
replace '09' with '""' into email_body.
endwhile.
if v_last = 'X'.
concatenate '"' email_body '" &vbCrLf '
into it_vbs.
else.
concatenate '"' email_body '" &vbCrLf &_'
into it_vbs.
endif.
append it_vbs.
endloop.
append 'myItem.Display' to it_vbs.
*- Prepare the vbscript filename for download and execution
clear v_vbs_filename.
call function 'WS_QUERY'
exporting
environment = 'TEMP'
query = 'EN'
importing
return = v_vbs_filename
exceptions
inv_query = 1
no_batch = 2
frontend_error = 3
others = 4.
if sy-subrc <> 0.
raise invalid_path.
endif.
concatenate v_vbs_filename 'mail.vbs'
into v_vbs_filename.
commandline = v_vbs_filename.
*- Download the file
call function 'WS_DOWNLOAD'
exporting
filename = v_vbs_filename
filetype = 'DAT'
mode = 'S'
tables
data_tab = it_vbs
exceptions
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_table_width = 4
invalid_type = 5
no_batch = 6
unknown_error = 7
others = 8.
if sy-subrc <> 0.
raise download_failed.
endif.
call function 'WS_EXECUTE'
exporting
commandline = commandline
program = 'WSCRIPT.EXE'
exceptions
frontend_error = 1
no_batch = 2
prog_not_found = 3
illegal_option = 4
others = 5.
if sy-subrc <> 0.
raise execution_failed.
endif.
endfunction.
Regards
Raja
Similar Messages
-
Having problems passing more than one parameter with html:link tag
Hi guys,
for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
For ex: I have in the database User1, User2 and User3. I would like to have a result like:
User1
User2
User3
Instead of it I have the result like:
User1
User2
User3
User1
User2
User3
User1
User2
User3
What I�m doing wrong? Could somebody help me please?
Thank you in advance
There is a snippet of the code, which I�m using in jsp:
<code>
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>
</code>Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
You have a nested loop structure here.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>Both loops iterate over your "user".
Your first loop loops over each user.
Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
If you have 4 users, you would have 4 groups of 4.
I only see you setting one parameter: "usersName" What other parameters do you need to pass?
At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name="usersName" scope="page" page="/name.do">
<bean:write name="user" /><br>
</html:link><br>
</logic:iterate> -
Is It Possible to Embed a PayPal Button with HTML Code and Not Widget?
I noticed that Muse doesn't have a PayPal Subscribe button for monthly payments.
PayPal can give me HTML code to embed the button in the website.
Will the HTML code work if I embed it with Muse?Hello,
Yes you can do that.
Insert code in <Body> of Page:
To insert HTML code in Body of page
Open the page in design mode.
Go to Object > Insert HTML.
Past the code in the window and hit OK.
To insert HTML code in <Head> of Page
Open Page in design Mode
Go to Page > Page Properties > Metadata > HTMl for Head
Paste the code in HTML for <head> section and click OK
Regards
Vivek -
Reports with HTML links to "sub-reports"
I have a main sequence that runs several sequences of tests. I
would like to have these tests create separate reports and then link
them from my main sequence's report. I have selected HTML
reporting style. I have figured out how to link by looking at Teststand\Examples\ModifyingReports\HTMLDiagnosticLinks.
The only thing left is figuring out how to create the "sub-reports"
instead of including the information in the main report.
Any suggestions?
Thanks,
Bob Young
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]Ray,
I would like to have the sub-reports be the same format as the main report but it is not important if it has a header like the main report has. I think that it needs to just make a report that will print on 50 pages into something easily readable. I have already toyed with the idea of a database, but I would still have to create a report of some sort, so if I can modify TestStand's report sequence to do it, that would be even better.
So basically I am dynamically calling a series of selectable tests. If each of the called tests had their own report liked in to the main test where it was called, that would be great.
So, I'm looking for something like this:
Main Report:
UUT Report
Station ID:
BOBY-L
Serial Number:
NONE
Date:
Monday, December 12, 2005
Time:
4:16:19 PM
Operator:
administrator
Number of Results:
37
UUT Result:
Failed
Failure Chain:
Step
Sequence
Sequence File
Numeric Limit Test: Receive 7 bytes
MainSequence
Read Test.seq
SequenceCall
MainSequence
testing.seq
Begin Sequence: MainSequence
(C:\VSS\Test Driver Code\Tests\Initializing Driver Test\Initializing Driver Test.seq)
SequenceCall
Status:
Passed
**********************LINK TO TEST****************
End Sequence: MainSequence
*****************SUB-REPORT LINKED IN*****************
Begin Sequence: MainSequence
(C:\VSS\Test Driver Code\Tests\__TestStand - Common Components\common sequences\Read.seq)
Read 20 bytes
Status:
Passed
Read the following bytes from Address 0000 of the FLASH:
46 00 C5 07 00 00 70 00 C3 03 00 00 9A 00 8D 04 00 00 E8 00
End Sequence: MainSequence
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected] -
Back Button with Anchor Link in Webview?
I use UIWebView (in a view controller) to display html pages stored locally on the device. This web view is the "leaf" view from a series of table views using a navigation controller that provides the appropriately-labeled "back" buttons to the table hierarchy tree.
The problem is that in some of these html pages, I have anchor links to a footnotes html page also residing on the device, and then that web page does appear in the web view but I don't know how to go "back" to the previous web page leaf. The navigation bar of course shows a back button that goes back to one of the table views and not to the preceding web page, the origin of the linked web page.
So, from a UI and programming prospective, how do I change the navigation back button label to say "Back" (instead of the previous table view) and have it when clicked show the previous web page and not the previous table view?
Is there where I might use UIWebView delegate functions? But how do I get the navigation button to change its functionality?
Thanks for any help.Is there where I might use UIWebView delegate functions? But how do I get the navigation button to change its functionality?
You can use the delegate functions to intercept each nav request...
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
or you can be told when new data was navigated to:
- (void)webViewDidFinishLoad:(UIWebView *)webView{
you can change the Nav bar's left button to be a custom view:
UIBarButtonItem *leftButton = [[[UIBarButtonItem alloc]
initWithTitle:NSLocalizedString(@"Back", @"")
style:UIBarButtonItemStyleBordered
target:self
action:@selector(goBack:)] autorelease];
self.navigationItem.leftBarButtonItem = leftButton;
You need to provide a function to perform the goBack.
hope this helps
michael golden -
Issue with HTML Links/Images in PDF print
Hello,
In a Webi XI report, I'm using HTML to link to other reports or execute javascripts. It works just fine when executing the report but when exporting to PDF, the actual code would appear instead of the correspondent link/image.
Any help would be much appreciated. Thanks.
AlessandroHi...
Try this...
Go to /Library/Internet Plug-Ins
Move the Adobe PDF Browser plugin (or just PDF Browser plugin) to the Trash.
See if that makes a difference. -
Captivate button with HTML form action
Hello,
How would I create a button in Captivate 6.0 that would perform the following action below?
<form method="post" action="https://suppliers.company.com/tracker/reg/CourseReg.cfm">
<input name="submit" type="submit" value="Receive Credit">
<input name="CourseId" type="hidden" value="TR001234">
</form>
I though it would be simple, but not sure what to use. If it should be vaiables, advance actions or javascript?
thanks!You havent closed these two tags
Sex :
<html:radio property="sex" value="M">Male
<html:radio property="sex" value="F">Female<br>ram. -
Problem with html link in my jsp----Not showing
Hii frnd ,i m trying to put a <hhtml:link> tag in my jsp ,
the tag is not showing up.
Wht can be the possible reason for tht.You would probably increase the chances of getting a reply if you posted the code you use. There could be a hundred different reasons.
-
hi ,
i have created a JFrame and in this frame placed a JLabel called www.java.sun.com.
Now my question is the Jlabel ie www.java.sun.com should be clickable and when i click it it should take me to www.java.sun.com webpage..
is it possible to do this..if so how?
Thanks in advance
byeeCheck following code -------
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class openBrowser extends JFrame
JLabel tataLink = new JLabel("<html><a href='#'>Want to know more about Tatafin CLICK HERE.</a></html>",SwingConstants.CENTER);;
public openBrowser()
tataLink.addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent e){
openBrowser1();
JPanel p = new JPanel(new BorderLayout());
p.add(tataLink);
JFrame f = new JFrame("HtmlLabel");
f.setContentPane(p);
f.setSize(600, 200);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
public void openBrowser1(){
final String WIN_FLAG = "url.dll,FileProtocolHandler";
final String WIN_PATH = "rundll32";
String URL_STRING = "www.java.sun.com";
String cmd = WIN_PATH + " " + WIN_FLAG + " " + URL_STRING;
try{
Runtime.getRuntime().exec( cmd );
}catch(Exception e){}
public static void main(String[] args){
openBrowser smw = new openBrowser();
} -
Submit a html:form with a link
Hey everyone I have a html:form which am I correctly submitting with html:submitt buttons. But I was told to submit with links and not buttons :S So I'm trying to do it. I'm trying to do it like this:
<html:form action="/UpdateDeleteColecao.do" method="post" focus="colecao">
<table border="0" align="center">
<tr><td width="50%"> Cole��o </td><td width="50%"><html:text property="colecao" value="${requestScope.col.colecao}" readonly="true"/></td></tr>
<tr><td width="50%"> Descric�o </td><td width="50%"><html:text property="descricao" value="${requestScope.col.descricao}"/></td></tr>
<tr>
<td width="50%" align="center">
<html:link action="/UpdateDeleteColecao.do"> <bean:message key="button.add"/> </html:link>
</td>
<td width="50%" align="center">
<html:link action="/UpdateDeleteColecao.do"> <bean:message key="button.delete"/></html:link>
</td>
</tr>
</table><br/>
</html:form> It is not working. I get the following error:
java.lang.NullPointerException
auge.form.AddColecaoForm.validate(AddColecaoForm.java:39)It works perfectly with the html:submit buttons. My action is a LookupDispatchAction. Is there a way to do it? Oh, a second question. What if I wanted to put the submit links to this form in a second frame, would that be possible?
I wouldn't wanna use Javascript, because if it's disabled everything will fail terribly. SO, I wanna know if there's any other way.
ThanksI cannot use the typical regular HTML "a href",
because I have to call a struts action.No... you said you have to submit the form with a link. A link is an "a href", it's exactly what <html:link> generates. But a link cannot be used for form submitting except by invoking Javascript to do it programatically.
Using an action in <html:link>, presuming that's really refering to an action and not just the href value, which is what I'm not really sure of. It's been a while since I've used Struts. So maybe the action is the href part, and you can put "javascript:void(0);" there?
But I'm absolutely positive about the HTML/Javascript aspect. Struts tags don't alter how HTML works. They just make generating some HTML content easier. But in this case, I'm not sure that's helpful because I never found a simple way to get the actual form name that the <html:form> creates. -
HTML links in Vibe Feed and digest e-mails do not work on GW 8.0.3client
I have GroupWise 8.0.3hp1 on NetWare 6.5.8 and a Vibe 3.3 install on
SUSE 11 (the downloadable Vibe demo virtual machine from Novell's site).
I have recently started upgrading GroupWise clients on Windows 7 PCs
(64bit), and have been testing Vibe. I have run into a problem with
HTML links in GW clients not working on PCs where the GW client has been
upgraded.
This problem occurs using the GroupWise 8.0.3hp2 and 8.0.3hp3 clients,
but does not occur on a 8.0.2hp2 client, so it appears to be GroupWise
client related. I haven't tested any other client versions.
1. When using the GW 8.0.3 client, if I select any of the "Novell Vibe
OnPrem", "Favorites", or "My Teams" folders, I can see the Vibe Feed
display showing entries for sites I'm following. But clicking on the
links in these entries does nothing, so I cannot use the Vibe Feed to go
directly to files, profiles, etc. The same Vibe Feed links from the
Vibe web browser interface or from a GW8.0.2hp2 client works fine.
2. If I have e-mail digest notifications setup to let me know when
changes are made to a folder or file in Vibe, the e-mails are delivered
to me just fine. But once again, none of the links in the e-mails work
when using the GW8.0.3 client. Clicking on them does nothing. If I
look at the e-mail message source, I can copy-and-paste the URLs
directly into a browser and they work fine, so the URLs themselves are
correct. Again, these links work fine if I use the GroupWise WebAccess
or a GW8.0.2hp2 client.
Is the GW 8.0.3 client is blocking these HTML links? I receive no
notification from the client asking whether to "unblock" any
links/scripts/images when viewing messages with these Vibe links.
Any suggestions for getting these to work on GW 8.0.3 client?
Thanks,
-Greg
former e-mail for posting:
[email protected]Greg,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Visit http://support.novell.com and search the knowledgebase and/or check all
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://forums.novell.com)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://forums.novell.com/faq.php
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://forums.novell.com/ -
Can i make a button change anchor link when you scroll down the site?
I am trying to make a scroll site.. and i have navigation buttons on the right, a full menu, but also a "1 topic up" button and "1 topic down" button.
Is there any way that i can have those buttons change anchor link when you scroll down the site.
Example:
I am at home, then i press "1 topic down" and gets scrolled to the next topic on the website, but then i cant make the button change to link to the anchor below that, so the button becomes useless after that 1 press.
Is that in any way possible in Muse to make it change link?Hi
You can try to create different buttons on page positions where down scrolling will be active with separate button actions. For example you click on "I topic down" , page scrolls and there is another button placed with "Next Topic down" , on click this would scroll the page more and similarly along the length of page.
Button with anchor link scrolling down the page cannot be used for different anchor links, creating different buttons with anchors is the solution.
Thanks,
Sanjit -
Struts tag html:link doesn´t work in Safari
*Very important question for our company!*
I´m trying to optimize our web application( www.seb.de) for Safari browser.
The problem is that Safari don´t display Struts <html:link> on the page. On the page should be a button "delete" at the right side.
Button Code:
<html:link>
href="DeleteMail"
newFlow="true"
styleClass="a_delete"
bundle="<%=SebMailBoxConstants.BUNDLESEBMAIL%>"
titleKey="Delete"
</html:link>
There is a styleClass "a_delete", which this button uses:
a.a_delete
background-image: url('icon/icon_delete.gif');
background-repeat: no-repeat;
width: 12px;
padding-right: 12px;
margin-top: 2px
Please help me to solve this problem.
Best regards,
Sergei.
SEB Group.same thing here, I've talked to apple twice and no resolution
if you move the screen up you can usually get the links to work
also when I do Google searches I can get to the second page of results and then I can go no further -
How can i send data POST with a html link in a textfield
Hello,
This is my problem : I generate (from a php script) html
links in a textfield. I would like for each link to send data with
the POST method to an other script.
My problem is that the getURL("lien", "", "POST") function
can be use only by a movieclip or button event ... and not from a
html link ...
How can i do it ?
Have you a small idea???
Thanks ....yes, thanks but now my problem is in my function associated
to this link :
function SendPost()
var toto="toto";
getURL("
http://127.0.0.1/board/scheduledfirst.php",
"_blank", "GET");
The function is executed but after in php i can get anything
with echo ($_GET["toto"]); echo ($_POST["toto"]);
Why ? -
Send over HTML-Link an string to PDF with openparameters ?
Hi,
is it possible to open an 3D-PDF over an HTML-Link and commit the 3D-PDF any strings (I´m not mean a searchstring for the internal searchfunction)?
Thanks for help !It's very difficult to explain by words.
I need an help in this forum because I want to make my book(interactive pdf) opens an external application that is a sort of presentation with video and images created in director.
If I try to create an hypertextual link between a button and this file I don't have the chance to choose it. So I thought to write a script like - launch "start.app"- to make my presentation run ( it happens if I ask the script to run).
But I wonder: - how can I make this event happen only when I ask to my project to do it?-
For example: I am reading my book on adobe digital edition and at the end of the third chapter, there is an image. I mouse up and I understand it's a button. When I click on, it opens a new window with my presentation running and I watch it. At end I quit and I keep on reading my book on Adobe digital edition.
Have you an idea?
I hope I have explained it much better?!?!
Maybe you are looking for
-
I have scanned a document and then saved it to desktop. It has saved as a pdf. When I have then attached it to email and sent - an message comes up saying no plug ins - The recipent couldnt open files. How can I rectify this so that I can attach pdf
-
Cannot access/open attachements in calendar on iPhone.
Hello, At work we are having Outlook and MS Exchange Server 2003. I regularly get meeting invitations with PDF attachmenst that I can open in Outlook on my work PC. On my iPhone 4S (iOS 5.1.1) calendar I can see the meeting entry but I cannot access
-
Dear All, Could someone please guide me regarding how to delete the PO created by TLB in APO which has not yet got CIFFed to R/3. Is there a BAPI for the same(DeleteMultiple) - or some other alternate way? regards Sudhir
-
Need input on Interactive Forms
Hello, Can anyone give idea on below info. ( As per my knowledge the following are not possible, any alternatives are welcome! ). 1. Suppose the interactive form contians some input fields and submit button. When the user enters data and click on sub
-
How to access Workflow variables in Form Designer?
Hello, I am wanting to set certain subforms to readonly depending on which part of the workflow the form is currently on. I already have the JavaScript code working to set the subform fields to readonly, but now I cannot figure out how to trigger thi