Custom print button using javascript for landscape document
I am working on a document that has 50+ pages and am wanting to have a print button on most of them to print the exact page. The document is landscape and I need the "Auto-Rotate and Center" toggle to be checked on, but I don't know how to code that. This is what I have so far:
this.print({
bUI: true,
bSilent: false,
bShrinkToFit: false,
nStart: 2,
nEnd: 2
Does anyone know how to get the "Auto-Rotate and Center" checked on and where to add it to the code?
Thanks so much for any help.
Hi Jaydeep,
I had already debugged and removed
'Include(Users)'.
if i remove 'Include(Users)'. i'm not getting user enumerator. It will be empty.
Since there are no users loaded in the object, the entire function not working.
Thanks,
Bharath P N
P N Bharath
Similar Messages
-
Print Excise invoice in Series grp 111 using J1IP for Billing document 1234
Dear Gurus,
I have an issue in which I create Sales Document>>Delivery Document and after that if I save my Billing Document a message pops up like:
Print Excise invoice in Series grp 111 using J1IP for Billing document 12345
And Excise Invoice gets generated automatically without J1IIN, to which I can view in the display mode in J1IIN.
I wish to Create Excise Invoice by using T Code: J1IIN not automatically.
I have checked all the number ranges and search the forum extensively but couldnu2019t found a possible solution.
Please help me!
Regards,
AshuHi,
Create Excise Invoice Automatically
Instructs the system to automatically create an outgong excise invoice immediately you create a commercial invoice or a pro forma invoice.
The system creates the excise invoice in the background.
Dependencies
If you want to make use of this function, you must also define the default plant, excise group, and series groups in Customizing for Excise Duty, by choosing Business Transactions -> Outgoing Excise Invoices -> Maintain Default Excise Groups and Series Groups
SPRO>Logistics General>Tax on Goods Movement>India>Basic Settings-->Maintain Excise Groups.
Under the Outgoing Excise invoice tab there is a check box (Excise invoice during billing)
Regards,
Saju.S -
How can I attach a PDF in an email, using javascript in PDF document?
How can I attach a PDF in an email, using an interactive button in the PDF-document?
I tried to create a form button with the menu action 'attach this PDF in an email'.
This Send.to-action doesn't work with Microsoft.
Does anyone has a solution by implementing a javascript-code for this in the PDF?Dick,
Thanks for your replie.
Nice alternative, but it still doesn't work on a Windows machine when the
mail software from Microsoft doesn't react on PDF actions.
You can do many things in Acrobat, but it is a problem when it doesn't work
on Windows and iPad.
So now I am looking for alternatives like interactive magazine software
(based on html5).
2012/5/11 dick the flash <[email protected]>
Re: How can I attach a PDF in an email, using javascript in PDF
document?
created by dick the flash <http://forums.adobe.com/people/dicktheflash>in
JavaScript - View the full discussion<http://forums.adobe.com/message/4395927#4395927 -
Disable button using javascript
Hi,
I'm sorry if this is a relatively simple problem, but I have tried several things and have searched the forum, but still no luck!
I am trying to get a button in a form to be disabled or hidden on loading the page and only to become enabled or shown once an 'onclick' event occurs. I already have a javascript function running successfully on the 'onclick' event, so there is no problem with that.
Preferably I would like the button to be template driven, but I realise that disabling/hiding it may only be possible with an HTML button.
I have tried the following JavaScript, but it appears to do nothing:
document.getElementById('P6_OK').disabled=true;
$x_HideItemRow('P6_OK');
If the JavaScript is ok it is probably the way I am implementing it into the HTML.
Thanks
LucyHi,
I'm still having troubles with this (see above). If anyone has successfully managed to disable a button using JavaScript I would be interested in how they did it.
To clarify, I have tried the following two pieces of script, among others:
(1) document.getElementById('P6_OK').disabled=true;
(2) $x_HideItemRow('P6_OK');
I have read quite a few forum links and followed what others have done, but in vain.
Thanks for your help
Lucy -
Hide an HTML button using javascript
Hi,
I need to hide an html buttton using javascript. I have an radio button with values "YES" and "NO". If is select NO then i need hide the button without refreshing the page. Can anyone suggest me how to hide an button using javascript.
Thanks
PrashanthPrashanth,
The exact solution will vary based on a few factors. The basic idea is to place an event handler on the radio button item that calls a function to hide/show the button. You might also want to call that function when the page loads too.
If you put an example page on apex.oracle.com and provide the workspace/username/password I'll take a look. You can create a new account for this purpose.
Regards,
Dan
Blog: http://DanielMcGhan.us/
Work: http://SkillBuilders.com/ -
Open several PDFs in the same Reader window using tabs for each document
How do I open several PDFs in the same Reader window using tabs for each document? I'm using Reader 11.0.03 and Windows 7.
That would be a nice feature! Suggest it at https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform - hopefully it will make it into Reader XII.
-
Can i use iCloud for pages documents iMac?
can i use iCloud for pages documents iMac?
Hi lmdavis72,
It looks like you can.
From "iCloud: Documents in the Cloud overview"
You can download a document from icloud.com/iwork to your Mac or Windows computer, edit it, and then drag the revised version to icloud.com/iwork. It’s then automatically updated on all of your iOS devices. You can also drag an iWork ’09 (Keynote, Pages, and Numbers) or Microsoft Office (PowerPoint, Word, and Excel) document created on your computer to icloud.com/iwork.
So it looks like it can go between iOS devices and your iMac.
ivan -
Associating two events with submit button using javascript in jsp
Hi
How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up windowHave something like :
<input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky. -
How to validate an text field item using javascript for numbers only.
hi,
how to validate an text field item using javascript for numbers only.please help me on this urgent
please mail me solun if posible on [email protected]Hi,
Page HTML header
<script>
function onlyNum(evt) {
// Usage: onKeyPress="return onlyNum(event)"
evt = (evt) ? evt : window.event;
var charCode = (evt.which) ? evt.which : evt.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)) {
var status = 'This field accepts numbers only!';
alert(status);
return false;
var status = '';
return true;
</script>Item HTML Form Element Attributes
onKeyPress="return onlyNum(event)"Br,Jari -
Returning a SharePoint 2013 termset in a tree structure using JavaScript for MultiLingual
Hi,
How do we get the path of term,if my term label is in some other locale, lets say for Spanish but using currentTerm.get_pathOfTerm() property it returns default path of my term store, i.e English.
But i need the path to use my values returned in Spanish ???
Do we have any idea how to achieve this. ??
Regards,
AvinashHi,
According to your post, my understanding is that you want to get term path using JavaScript for MultiLingual.
Per my knowledge,
SP.Taxonomy.Term.pathOfTerm property (sp.taxonomy) gets the path for this
Term in the
TermStore default language.
To get path for MultiLingual, I recommend that you can use
Term.GetPath method (Int32) which
gets the path for the current
Term in the specified lcid.
If the lcid is not a valid TermStore language, then the default language is used.
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Can we add custom print button to crystal report launched using jsp
Hi,
I need to add a print icon in crystal report. My requirement states that I should not use the print button given in the taskbar of crystal report. Can this be done?
ThanksAre you using Crystal Reports for Eclipse? If so, there is a new version out that suports Excel exporting:
/people/blair.wheadon/blog/2009/01/16/announcing-crystal-reports-for-eclipse-20 -
Open Print Dialog using JavaScript
Hi folks, I'm trying to open dynamically the print dialog window for printing the PDF (Ctrl + P) in WebDynpro ABAP using JavaScript.
The JavaScript seems to be executed only for Interactive Forms, however I don't need to use interactive but only Print-Based Forms.
This line of code works if I assign it to an event like click for a button, I tried to call it in the doc:ready event but it does not work
xfa.host.print(1, "0", "0", 0, 1, 0, 0, 0);
Please I need some help and I hope it's possible!
AlexThanks, we are getting close!
This line of code works, but it does not prompt me with the print dialog box (because of the first parameter is 0)
xfa.host.print(0,"0","0", 0, 1, 0, 0, 1);
I got this message box "This document is trying to print. Do you want to allow this?" Yes/No....
Ok, that works but I would like to have the standard print dialog window instead, where you could select your printers.
This line of code prompt me to save the XDP, this is not what I want
xfa.host.exportData("",1);
In which event should I place the script??
Also, script only seems to be executed for interactive forms, I don't want to generate interactive forms, they are more heavy to render, this is only for print based forms!
thanks
Alexandre Giguere -
How to Disable a Button Using JavaScript
Hi,
I want to disable a button based on a condition. I am using a template based button (button Alternate 3). I am using Theme 3. I have created buttons of type item but when I view the source there is no button name populated in the html. My javascript is not disabling the button.
Please advice.
Thanks
sukarnaHi,
You can't disable an A tag (FireFox, for example, will still let you click the "link").
What you could do would be to create a second button that doesn't work and only show one of these at a time.
I have done that here: [http://apex.oracle.com/pls/otn/f?p=35917:30]
The Button has been based on a custom Button Template. The definition for this is:
<table class="t10Button" cellspacing="0" cellpadding="0" border="0" summary="" id="#BUTTON_ATTRIBUTES#">
<tr>
<td class="t10L"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /></a></td>
<td class="t10C"><a href="#LINK#">#LABEL#</a></td>
<td class="t10R"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /></a></td>
</tr>
</table>
<table class="t10Button" cellspacing="0" cellpadding="0" border="0" summary="" id="#BUTTON_ATTRIBUTES#_DISABLED" style="display:none">
<tr>
<td class="t10L"><img src="#IMAGE_PREFIX#themes/theme_10/button_left.gif" alt="" width="4" height="24" /></td>
<td class="t10C" style="padding:1px 4px;">#LABEL#</td>
<td class="t10R"><img src="#IMAGE_PREFIX#themes/theme_10/button_right.gif" width="4" height="24" alt="" /></td>
</tr>
</table>This actually creates two buttons - the first one, which actually has the link, is visible to start with. The second one, which has no link at all, starts off as invisible.
Both buttons use the #BUTTON_ATTRIBUTES# setting to get the button name into the ID - though the second button adds "_DISABLED" to this so that it has a unique, but known, ID
Then it is just a case of calling a function to show one button and hide the other or vice versa:
<script type="text/javascript">
function disableButton()
document.getElementById('P30_TEST_BUTTON').style.display = "none";
document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "block";
function enableButton()
document.getElementById('P30_TEST_BUTTON').style.display = "block";
document.getElementById('P30_TEST_BUTTON_DISABLED').style.display = "none";
</script>Another possibility is to add the #BUTTON_ATTRIBUTES# to the TABLE tag instead of the A tag in a new button template (based on a copy of the normal Button template). Then, the ID value would be applied to entire "button". You can then make this invisible using:
$x('BUTTON_ID').style.visibility = 'hidden';The button will be removed from the page as far as the user is concerned, so they can not click the link.
Andy -
Customer refund paid using F110 for which check is not generated
Hi,
A customer refund is paid using the transaction F110. Payment document got generated and successfully posted. But the check number is not allotted for that document and checks are not printed. In the same payment run payment is made to the vendors for which checks got generated. I had checked customer master data and payment method settings and not able to figure out what is the exact reason.
Please respond
Regards
SrinivasHi,
System thinks Check should be issued to vendors and collected from customer so check creation refer to the field LFA1-LIFNR, name written here is used for Check creation. Does customer name lie in to LFA1-LIFNR. This is the reason check issued for customer is not created. If you want then get the check printing form analyzed by an ABAPer to modify, if any.
Regards,
Chintan Joshi. -
I customized a WebHelp Pro skin using the Omega skin as the basis. Everything works fine except the Print button, which I added using the same Action as shown in the BeautifulVista skin's Print button.
Local Version (C: drive)
When I generate my help project and view it locally from my C: drive after I accept the warning about viewing locally, I see the Print button.
However, it does NOT work. I've attached a graphic that shows the local version and the skin dialog where I set up the action for the Print button.
RH Server 8 version
When I view the same project after I publish it to the server, the Print button does NOT display.
QUESTIONS ARE:
How do I get the Print button to function properly (active printer dialog)?
If it can't work until it is published that fine but then how do I get it display when I view from server?Hi there
Have you tried editing your Window Definition?
Click View > Pods > Project Setup
Cheers... Rick
Helpful and Handy Links
RoboHelp Wish Form/Bug Reporting Form
Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
Adobe Certified RoboHelp HTML Training
SorcerStone Blog
RoboHelp eBooks
Maybe you are looking for
-
On my mac the Software Update appeared, then it asked me to update some software,when I clicked Install all or update all, it said that it will restart and it told me not to turn it off, then when the screen appears, it is too slow, I can't "barely"
-
I have no idea why it does that. I have it plugged into an extension chord if that helps.
-
Document attachment multiple lines PO
Hi there, Does anyone know if it is possible to see an indicator at item overview level on a PO to indicate that there is an attachment? Using the document management system, it is possible to attach documents at an item level. This is done by clicki
-
hey all, I was playin oblivion just a few minutes ago... when I experienced a weird hang then a freeze, this problem occurred when playing an avi file in mplayer yesterday as well... I know it is related because there is a hard freeze, sound still wo
-
All, Version is 11.1.2.1 with EPMA patch 11804477. Intially there are no EPMA applications and no dimesnions in Shared library / application library. When transformed classic application to epma, dimensions are migrated as local dimensions. Then righ