How to maintain comments (or Text fields) in BPS planning layout.
Hello
I found following document on SDN written by Tarun Malik:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60938938-de6f-2910-2080-fc80d38ebfec?quicklink=index&overridelayout=true
Are there bugs in the coding:
Functionmodule Z_BPS_WRITE_LAYOUT_READ_ODS:
*it_ll_data = it_ll. "it_ll has not been defined upfront?!
APPEND range TO et_dimension. " et_dimension has not been defined upfront?!
Maybe Tarun Malik can answer?
Regards
Arjan
Hi,
Yeh i know they need to click on that to see the comments ;
Just checking if your are ok with the approach as it will avoid your coding part as well as performance of the layout.
going by Tarun's approach,
how have you declared your import and export parameters of your function module ?
I think you are missing that part which is giving you the error ..
Pratyush
Similar Messages
-
How can I get the "text" field from the actionEvent.getSource() ?
I have some sample code:
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.ArrayList;
public class JFrameTester{
public static void main( String[] args ) {
JFrame f = new JFrame("JFrame");
f.setSize( 500, 500 );
ArrayList < JButton > buttonsArr = new ArrayList < JButton > ();
buttonsArr.add( new JButton( "first" ) );
buttonsArr.add( new JButton( "second" ) );
buttonsArr.add( new JButton( "third" ) );
MyListener myListener = new MyListener();
( (JButton) buttonsArr.get( 0 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 1 ) ).addActionListener( myListener );
( (JButton) buttonsArr.get( 2 ) ).addActionListener( myListener );
JPanel panel = new JPanel();
panel.add( buttonsArr.get( 0 ) );
panel.add( buttonsArr.get( 1 ) );
panel.add( buttonsArr.get( 2 ) );
f.getContentPane().add( BorderLayout.CENTER, panel );
f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
f.setVisible( true );
public static class MyListener implements ActionListener{
public MyListener() {}
public void actionPerformed( ActionEvent e ) {
System.out.println( "hi!! " + e.getSource() );
// I need to know a title of the button (which was clicked)...
}The output of the code is something like this:
hi! javax.swing.JButton[,140,5,60x25,alignmentX=0.0,alignmentY=0.5,
border=javax.swing.plaf.BorderUIResource$CompoundBorderUIResource@1ebcda2d,
flags=296,maximumSize=,minimumSize=,preferredSize=,defaultIcon=,disabledIcon=,
disabledSelectedIcon=,margin=javax.swing.plaf.InsetsUIResource[top=2,left=14,bottom=2,
right=14],paintBorder=true,paintFocus=true,pressedIcon=,rolloverEnabled=true,
rolloverIcon=,rolloverSelectedIcon=,selectedIcon=,text=first,defaultCapable=true]
I need this: "first" (from this part: "text=first" of the output above).
Does anyone know how can I get the "text" field from the e.getSource() ?System.out.println( "hi!! " + ( (JButton) e.getSource() ).getText() );I think the problem is solved..If your need is to know the text of the button, yes.
In a real-world application, no.
In a RW application, a typical need is merely to know the "logical role" of the button (i.e., the button that validates the form, regardless of whether its text is "OK" or "Save", "Go",...). Text tends to vary much more than the structure of the UI over time.
In this case you can get the source's name (+getName()+), which will be the name that you've set to the button at UI construction time. Or you can compare the source for equality with either button ( +if evt.getSource()==okButton) {...}+ ).
All in all, I think the best solution is: don't use the same ActionListener for more than one action (+i.e.+ don't add the same ActionListener to all your buttons, which leads to a big if-then-else series in your actionPerformed() ).
Eventually, if you're listening to a single button's actions, whose text change over time (e.g. "pause"/"resume" in a VCR bar), I still think it's a bad idea to rely on the text of the button - instead, this text corresponds to a logical state (resp. playing/paused), it is more maintainable to base your logic on the state - which is more resilient to the evolutions of the UI (e.g. if you happen to use 2 toggle buttons instead of one single play/pause button). -
How can I program the text fields in my email forum to have rounded corners
How can I program the text fields in my email forum to have rounded off edges or corners.
this is the code im using.
// insert code here// insert code here// prepare email field
var email = sym.$("email")
email.html("Enter your Email: ");
inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
inputEmail .css ('font-size', 14);
inputEmail .css ('width', 350);
inputEmail .css ('background-color', '#4e4e4e');
inputEmail .appendTo(email);
// prepare topic field
var topic = sym.$("topic");
topic.html("Topic: ");
inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
inputTopic .css ('font-size', 14);
inputTopic .css ('width', 350);
inputTopic .css ('background-color', '#4e4e4e');
inputTopic .appendTo(topic);
// prepare message field
var message = sym.$("message");
message.html("Message: ");
inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
inputMessage .css ('color',"#ffffff");
inputMessage .css ('font-size', 14);
inputMessage .css ('background-color', '#4e4e4e');
inputMessage .css ('box-shadow', '#4e4e4e');
inputMessage .css ('width', 350);
inputMessage .css ('height', 150);
inputMessage .appendTo(message);
var submitBtn = sym.$("btn");
submitBtn.html("Submit");
submitBtn.css("text-align", "center");
submitBtn.css("font-size",14);
submitBtn.css("font-weight","bold");
submitBtn.css("color","#ffffff");Try this: inputEmail.css ('border-radius', '25px');
attachment
more details -
How to maintain Space between text in Smart form
Hi Experts,
How to maintain space between text in smat form.
For example
I need to maintain like this
Prepared By: Passed By: Approved By:
but after save it come like this
Prepared By: Passed By: Approved By:
How to maintain spaces between texts?
Regards,
Sreedhar.hi,
we can give space in the smartform in the same way as in the scripts with two commas one space can be given.
when u click on the text in the window ,
there in the general attributes at the left hand side u can find a small icon for editor in that u can define the spaces with the variable to be printed in &var&. -
Acrobat Forms -- how do i make a text field opaque when typing
I'm new to the Forms formatting, so bear with me. I'm trying to create a fillable form which has rules to fill in by hand. How can I create a text field box that will cover the rules behind it if someone chooses to type the info instead of handwriting. I found a script that almost works:
if (event.value.toString().length > 0) {
event.target.fillColor = color.white ;
} else {
event.target.fillColor = color.transparent ;
The only problem with this is that the rules show while typing on top of them. The box turns opaque when a new entry is made in another field. Anyway to make the box opaque while they're typing ?Here's a link to a demo that I believe behaves as you want: https://workspaces.acrobat.com/?d=AG6oZ3bi3DYHokxDPeWN7A
It is controlled by several scripts, so study them to see how it works. -
How do I create a text field the scrolls mutliple pages in Adobe Pro XI
How do I create a text field that when filled in the alloted space on one page it opens a second page?
Search the forum for "auto tab"...
-
How do I make my text field automatically upper case?
How do I make my text field in a form automatically upper case?
Use the following as the text field's custom Keystroke JavaScript (choose a Format type of Custom):
// Keystroke script for text field
event.change = event.change.toUpperCase(); -
How to create Using Formatted Text Field with multiple Sliders?
Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
// constructor
label1 = new JLabel( "Individuals" );
scroller1 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 10 );
scroller1.setMajorTickSpacing( 10 );
scroller1.setMinorTickSpacing( 1 );
scroller1.setPaintTicks( true );
scroller1.setPaintLabels( true );
scroller1.addChangeListener(this);
java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
NumberFormatter formatter = new NumberFormatter(numberFormat);
formatter.setMinimum(new Integer(0));
formatter.setMaximum(new Integer(100));
textField1 = new JFormattedTextField(formatter);
textField1.setValue(new Integer(10)); //FPS_INIT
textField1.setColumns(1); //get some space
textField1.addPropertyChangeListener(this);
//React when the user presses Enter.
textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField1.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
label2 = new JLabel( "Precision" );
scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
scroller2.setMajorTickSpacing( 10 );
scroller2.setMinorTickSpacing( 1 );
scroller2.setPaintTicks( true );
scroller2.setPaintLabels( true );
scroller2.addChangeListener(this);
textField2 = new JFormattedTextField(formatter);
textField2.setValue(new Integer(10)); //FPS_INIT
textField2.setColumns(1); //get some space
textField2.addPropertyChangeListener(this);
//React when the user presses Enter.
textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField2.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
// State Changed
public void stateChanged(ChangeEvent e) {
JSlider source = (JSlider)e.getSource();
int fps = (int)source.getValue();
if (!source.getValueIsAdjusting()) { //done adjusting
if(source==scroller1) {
System.out.println("source ==scoller1\n");
textField1.setValue(new Integer(fps)); //update ftf value
else if(source==scroller2) {
System.out.println("source ==scoller2\n");
textField2.setValue(new Integer(fps)); //update ftf value
} else { //value is adjusting; just set the text
if(source==scroller1) textField1.setText(String.valueOf(fps));
else if(source==scroller2) textField2.setText(String.valueOf(fps));
// Property Change
public void propertyChange(PropertyChangeEvent e) {
if ("value".equals(e.getPropertyName())) {
Number value = (Number)e.getNewValue();
if (scroller1 != null && value != null) {
scroller1.setValue(value.intValue());
else if (scroller2 != null && value != null) {
scroller2.setValue(value.intValue());
// ACTION PERFORMED
public void actionPerformed(ActionEvent event) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
...if :p3_note_id is null
then
insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
Another option is that you have a trigger on table NOTES that generates a new note_id even for an update. -
does anyone know how I can create a text field in a pdf document that will multiply a total in another box? I’m making an interactive pdf for an order form (attached), and I need to find a way for the “total quantity” number to multiply by 9 and total in the “Amount Due” box.
Hey Gary,
Have a look at this post: Re: horizontal scrolling similar to excel
Andy's reply will show you how to make a table scroll horizontally, but it will be tough to accomplish it in some sort of easily replicable way. I am working on a JQuery extension that will help accomplish this, but I have had my time invested in another project at the moment.
Good Luck,
Tyson -
Is there a fax cover template? If not, how can I have 2 text fields on one line?
Is there a fax cover template? If not, how do you add two text fields on one line?
No fax cover template. This forum posts explains how to put multiple fields on one line:
http://forums.adobe.com/message/5032849 -
IN OBIEE How to change Writeback input text field into textarea?
HI,
I've got writeback working, OBIEE 10.1.3.3, but I want a 255 character in that writeback text field with word wrapping. because we Can't see to get input
type text to wrap, is it possible to change input type="text" to input type="textarea" for a writeback column?
I tried to included Html with javascript code in Writeback column properties under CSS custom option.it's also not working
HTML code:
<html>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT">
function expandTextArea(textarealabel,e)
if((textarealabel.textLength %45==0)&(textarealabel.textLength>1))
if(e.which==8)textarealabel.rows=textarealabel.rows-1;elsetextarealabel.rows=textarealabel.rows+1;
</SCRIPT>
</head>
<body>
<FORM NAME="Workbook2" ACTION=" " METHOD="">
<TEXTAREA ID ="Text1" COLS="20" ROWS="2" style="overflow:visible" ONKEYDOWN="expandTextArea this,event);">
</TEXTAREA>
</FORM>
</body>
<f/html>
If you have any idea share with me ASAP.
Edited by: devarasu on Feb 23, 2011 6:57 PMHi thanks for your quick response,
1) i have cheked you link there is no word Wrapping output, I want to view my writeback filed morethan one line ,is there any way to set instead Horizondal and vertical bar in that writeback filed. like Auto extending TestArea (it have Scrolling bar).
2) Onemore thing also required,once i gave maximum length of WriteBack field 255 characters. but is not controlling it's allowing morethan 255 characters.kindly tell me how to control the lenth of the writeback field .
Note: I am using SQL server DB,in DB and BI Answres writeback column properties i given 255 characters only but it's allowing morethan 255 characters.
once again thanks to you.kindly help me on this ASAP.
Thanks and Regards,
Devarasu.R -
How to generate barcode from text field in adobe form???
hello everyone,
I'm new in this forum and I hope that there are people who can answer my question.
I use Adobe Acrobat Pro 9. I have converted a Word template to a PDF template and everything works fine.
I would like to generate a barcode of the contents of a text field (by the users), for example the following format 0123-A123456-11.
I have tried in various ways but it has not worked. The barcode becomes unstructured and unreadable.
Does anyone know how to do it step by step?
Best regards!
Nader from SwedenHi,
You can insert dynamic barcodes into your form using LC Designer.
You should do a search here as dynamic barcodes has been covered by by Steve Walker in detail. For example:
BARCODE 128 - possibility of binding 2 data fields to the barcode
Paperforms barcodes
Using Barcode in Acroforms
However one thing to bear in mind is that dynamic barcodes will not work in Reader unless the form has been Reader enabled using LC Reader Extensions ES2, which is a server product. Option 4 in this summary:
Good luck,
Niall
Assure Dynamics -
How do I make a text field expand in depth so I can see it in print?
I am totally new to making forms in Designer. So please bear with me.
I created a simple form for teachers to use as an evaluation tool. A question is asked on the form, and the teachers have space to reply in the text field just below.
The trouble is, I want the expanding field to actually "push" the content below it as the field increases in depth. That way, when users print the form for the record, their responses can be viewed in their entirety on the page.
At the moment, the text fields expand with *scrollbars,* which allow multiple lines of text -- but when you print, you only see a few lines.
How can I accomplish this?
Thanks to everyone for your help. -- BarbaraHi Barbara,
Basically, you do it by creating a dynamic form.
WARNING: When you do this, other parts of your form may go wonkers if they're not set up carefully, so be sure and save a copy of the original first.
--Be sure your form is saved as a dynamic PDF. Check to make sure the preview type is set for Interactive (File menu > Form Properties > Defaults > Preview Type)
--Set the text field itself to "Expand to fit" (Layout palette, Height)
--Wrap it in a subform set to "Flow Content" (Object palette, Type. Also check "Allow Page Breaks within Content" on the Object palette)
--Set the main subform for the page it's on to "Flow Content" as well.
You'll still see the scroll bars, but after you exit the field it will expand the way you want it to.
You can read up on the two types of subforms in Designer Help.
Let me know if that works for you.
Ann -
How to give for a text field 'max+1' value instead of sequence .
HI All,
I have a requirement like ,
For my text field i applied sequence by using groovy expression.Now i need to change that to 'max+' value of table Grid and display in the text field. Can please suggest me how can i implement .(JDev 11.1.1.3 v)
Regards,
Sindhu.hi user,
if you want perform some increment operation . in auto means. donot prefer these thread given below..
there is lot thread of for creating sequence. based on the sequence it works perfect.
if i understud correctly means follow this
Increment operation // it perfoms some increment operation. not using sequennce.
button press
compliation problem // have a look at this
if cumes under cirumstance for multiple user on that scree or ui . probabaly this idea(max)or (some increment) will fails.
i i will prefer sequqnecs._
IN ADDITION INFO TO USER
JOHN SAYIGN EXACTLY
Edited by: Erp on Sep 25, 2011 9:46 PM -
How can I add javascript text fields to Acrobat pages from Applescript please?
I have a real need to add text fields to Acrobat document pages from Applescript. I can't access the Headers and Footers from Applescript in Acrobat XI. I can set watermarks using the following script, but cannot for the life of me work out how to add text fields. Any advice please?
Regards
set TempAttachmentName to "(20140717121212Z)"
set PreserveFileName to "This is a test"
set bypass to false
tell application "Adobe Acrobat Pro"
activate
set CountOfPages to count of pages
repeat with PageCounter from 1 to CountOfPages
tell application "System Events" to tell process "AdobeAcrobat"
try
click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
tell current application to delay 0.1
keystroke PageCounter as text
tell current application to delay 0.1
keystroke return
if not bypass then
my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
end if
end try
end tell
end repeat
end tell
on ADDHeaderFooter(The_String1, The_String2, currentPage)
tell application "Adobe Acrobat Pro"
activate
set myDocument to document 1
tell myDocument
tell page currentPage
set cbox to crop box
set item 2 of cbox to (item 2 of cbox) + 44
set item 4 of cbox to (item 4 of cbox) - 44
set media box to cbox
set crop box to cbox
set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0)
do script theResult1
set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0)
do script theResult2
end tell
end tell
end tell
end ADDHeaderFooter
on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR)
set Params to "cText: '" & cText & "'," & return
set Params to Params & "cFont: '" & cFont & "'," & return
set Params to Params & "nFontSize: '" & nFontSize & "'," & return
if class of nS is integer then set Params to Params & "nStart: " & (nS - 1) & "," & return
if class of nE is integer then set Params to Params & "nEnd: " & (nE - 1) & "," & return
-- 0 = left, 1 = centre, 2 = right
if class of nHA is integer then set Params to Params & "nHorizAlign: " & nHA & "," & return
-- 3 = top, 4 = bottom
if class of nVA is integer then set Params to Params & "nVertAlign: " & nVA & "," & return
-- offset in points
if class of nHV is integer then set Params to Params & "nHorizValue: " & nHV & "," & return
-- offset in points
if class of nVV is integer then set Params to Params & "nVertValue: " & nVV & "," & return
if class of nR is integer then set Params to Params & "nRotation: " & nR & "," & return
set javascript to "this.addWatermarkFromText({" & Params & "});"
return javascript
end Add_WaterMarkTextG'day
Unfortunately I don't have the API. My Adobe Reader installation updating to version XI failed, and subsequent attempts to fall back on the X version are blocked by the partial install of XI. Damn Adobe stuff.
Could someone please post the relevant part of the API to give me some pointers, please.
I ha mucked about with some information I found on the Web, and come up with the following, which fails because I can't work out how to address the current document with the variable myDoc.
Regards, Brian
set Params to Params & "var myDoc = this;" & return
set TempAttachmentName to "(20140717121212Z)"
set PreserveFileName to "This is a test"
set bypass to false
tell application "Adobe Acrobat Pro"
activate
set CountOfPages to count of pages
repeat with PageCounter from 1 to 1 # CountOfPages
tell application "System Events" to tell process "AdobeAcrobat"
try
click menu item "Page..." of menu 1 of menu item "Go To" of menu 1 of menu bar item "View" of menu bar 1
tell current application to delay 0.1
keystroke PageCounter as text
tell current application to delay 0.1
keystroke return
if not bypass then
my ADDHeaderFooter(TempAttachmentName, PreserveFileName & " " & CountOfPages, PageCounter)
end if
end try
end tell
end repeat
end tell
on ADDHeaderFooter(The_String1, The_String2, currentPage)
tell application "Adobe Acrobat Pro"
activate
set myDoc to document 1
tell myDoc
tell page currentPage
set cbox to crop box
set item 2 of cbox to (item 2 of cbox) + 44
set item 4 of cbox to (item 4 of cbox) - 44
set media box to cbox
set crop box to cbox
set theResult1 to my Add_WaterMarkText(The_String1, "IDAutomationHC39M", 12, 1, 1, 1, 0, 3, 10, 3, 0, myDoc)
do script theResult1
set theResult2 to my Add_WaterMarkText(The_String2, "Times", 16, 1, 1, 1, 0, 4, 10, -6, 0, myDoc)
do script theResult2
end tell
end tell
end tell
end ADDHeaderFooter
on Add_WaterMarkText(cText, cFont, nFontSize, nS, nE, nTA, nHA, nVA, nHV, nVV, nR, myDoc2)
#set Params to "var myDoc = app.newDoc();" & return
set Params to ""
set Params to Params & "var myDoc = this;" & return
set Params to Params & "var inch = 72;" & return
set Params to Params & "var Bbox = this.getPageBox(" & "\"Crop\"" & ");" & return
set Params to Params & "var f = myDoc.addField(" & "\"Text1\"" & ", " & "\"" & cText & "\"" & ", 0, [72, Bbox[1]-inch, Bbox[2]-2*inch, Bbox[1]-2*inch ] );" & return
set Params to Params & "f.strokecolor = color.black;" & return
set Params to Params & "f.richText = true;" & return
set javascript to Params
return javascript
end Add_WaterMarkText
Maybe you are looking for
-
The S5 was PERFECT until Lollipop installed. Now? I have no end of glitches and it drains my battery much faster. What is the obsession that companies have with "improving" something when, in fact, they rarely do? When my last phone went to Kit Kat i
-
Color Correction plugin for Premiere Pro CS3....
Hi, I'm looking for a plugin for color correction in Premier Pro CS3. I checked out the Color Correction tools that ship with Premiere (which are nice) and I checked out Synthetic Aperture's Color Finesse 2 (which is great as well). Are there any oth
-
Hi All, There is a client requirement to pay 100% adavance along with freight charges applicable against a PO .We can enter the freight details in the PO but the same is not available in A/P invoice. How do we handle this scenario ? Thanks, Asap
-
Pavilion 17-f084nf. Need instructio​ns on how to replace the hard drive
I do not understand how to get to the innards Series 17-f000. I want to replace the HDD and RAM. There is a manual? This question was solved. View Solution.
-
Re: MobileMe // Invalid Username or Password Error when uploading in iPhoto
Tip is ready.