How to capture the dynamic fields in the form...urgent...Please help me
Hi Gurus,
I'm working on Adobe Interactive form developed in WDP ABAP. I have a dynamic field called Roles. User can give n number of roles as Input. How can I capture them in my WDP. I know how to capture if there is a fixed field like name, age, email id etc.. Please give me the detail explaination on this.
hi,
when you create a form, the UI elements are created by either directlly dragging and dropping the context elements or map form elements with context elements.
when pdf is online its contents are reflected in the Context Attributes.
so if you change/modify the Context Attributes, the change is reflected in the corresponding form fields.
regards,
-amol gupta
Similar Messages
-
Entry Point Not Found, AVCFAssestCreateWithByteStremAndOptions could not be located in the dynamic link libary AVFoundationCF.dll. Please help!
have followed all the touble shooting links to deleate temp files, unistal ect. still not working! when I reinstalled I got an error code. Please help
I am running Windows 7.It says "error 7, windows error 127"
Please help! -
Hi Experts,
I'm working on Adobe Interactive form developed in WDP ABAP.( I have successfully config the ADS in my server.)
Action:
1. Create two view -
first_view and second_view in the WDP ABAP..
2. In the first_view, there are a input field( named "elements_number") and a button(named "create_button") .
3. In the second_view, there is Adobe Interactive form ( named "adobe_form" ).
4. Run the WDP ABAP: first_view is opened. Type a number ex."3" in the "elements_number", click the "create_button".
5. The second_view is opened.
6. The "adobe_form" is occured.
7. There are 3 text_fields in the "adobe_form".
Steps (1) ~ (6), I have completed, but I don't know how to implement the step (7).
Please give me some hint on this. I try to use the CL_WD_ADOBE_SERVICE, but I didn't found any examples. Do you give me some ways to implement the function? Thanks a lot.
Thank you very much.
Thanks,
TaoHi Philippe,
Thank you very much in advance.
Do you tell me how to hide elements in the "adobe_form" in the WDP ABAP? How can I get the elements attributes in the "adobe_form" from the method WDDOMODIFY of the second_view in the WDP ABAP.
Please give me some hints on this. Do you give me some ways to implement functions( hide elements and get elements's attributes)? Thanks a lot.
Thank you very much.
Thanks,
Tao -
Hi All,
Please tell me how can I capture any event triggred by ABAP program in process chain...The ABAP program is there in the process chain...ABAP prog is triggering one event based on some condition..Please tell me how can I capture that event in the process chain...
Thanks in Advance...Also check this link...
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.highlightedcontent?documenturi=/help/sdn_nw04/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
Hope this helps...
Thanks,
Raj -
How to control prsence of fields in saveas method.urgent please
I Created a template form with some buttons ,textfields and dropdown fields. i kept saveas button if user clicks and saves the file as another name . i want to remove apprence of buttons and drop down buttons etcc.. i tried
dataroot.Transmittal_pdf.Button1::click - (JavaScript, client); save as button click
dataroot.Transmittal_pdf.Button1.presence="invisible";
dataroot.Transmittal_pdf.ResetButton1.presence="invisible";
dataroot.Transmittal_pdf.PrintButton1.presence="invisible";
dataroot.Transmittal_pdf.Project_Type.presence="invisible";
dataroot.Transmittal_pdf.Contract_Type.presence="invisible";
app.execMenuItem("SaveAs");
this one buttons are invisible in template not in saved copy
dataroot.Transmittal_pdf.Button1::click - (JavaScript, client); save as button click
dataroot.Transmittal_pdf.Button1.presence="hidden";
dataroot.Transmittal_pdf.ResetButton1.presence="hidden";
dataroot.Transmittal_pdf.PrintButton1.presence="hidden";
dataroot.Transmittal_pdf.Project_Type.presence="hidden";
dataroot.Transmittal_pdf.Contract_Type.presence="hidden";
app.execMenuItem("SaveAs");
with regards
prasadMalcolm
it is worked for me for buttonms . but drop down arrow button still remained. please advice
with regards
prasad -
Dynamic field on the output screen
Hi All,
I have a requirement to create the dynamic field on the output screen.
In the basic list I am displaying the production order details like
check box, production order , materials, quantity, etc.
If I select the particular check box , the quantity pertaining to that check box line as to display on the dynamic field. If I select more than one check box, then the cummilative quantity of all the production orders has to display on the dynamic field.
Thanks in advance.
Ramesh.hi,
you can define a dinamic fields depending on selection of check box.
Go through the below code. I think it may help you.
PARAMETERS:
P_CB1 AS CHECKBOX,
P_CB2 AS CHECKBOX,
P_A TYPE I MODIF ID XXX DEFAULT ' ',
P_B TYPE I MODIF ID YYY DEFAULT ' '.
DATA:
W_C1,
W_C2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'XXX'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ELSEIF SCREEN-GROUP1 = 'YYY'.
SCREEN-ACTIVE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
IF P_CB1 EQ 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'XXX'.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 1.
SCREEN-OUTPUT = 1.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF P_CB2 EQ 'X'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'YYY'.
SCREEN-ACTIVE = 1.
SCREEN-INPUT = 1.
SCREEN-OUTPUT = 1.
SCREEN-INVISIBLE = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF. -
Read Data from the dynamic Field Symbol with key ?
Dear All,
I've 2 dynamic internal tables in the form of field symbols.
Now,I want to loop the item field symbol, read the header field symbol content and then move the corresponding into a final field symbol.
How to read the field symbol with key ?
When I'm trying to give the key clause in the paranthesis it's giving a syntax error.
Any clues ?
FYI .....
* Get the Dynamic Field and Value for the Date/Year and convert it into Year value
LOOP AT <fs_t_son> ASSIGNING <wa_son>.
ASSIGN COMPONENT gwa_znrows_def-fieldname OF STRUCTURE <wa_son> TO <fs_year>.
IF sy-subrc = 0.
CLEAR gv_string.
MOVE <fs_year> TO gv_string.
CLEAR gv_year.
gv_year = gv_string.
<fs_year> = gv_year.
ELSE.
* When the Date/year Field is not in the Table then -->
* Get the Dynamic Field and Value
ASSIGN COMPONENT gwa_znrows_def-kfldname OF STRUCTURE <wa_rson> TO <fs_value>.
* Populate field for Dynamic Where condition
CLEAR gv_value.
CONCATENATE '''' <fs_value> '''' INTO gv_value.
CONCATENATE gwa_znrows_def-kfldname '=' gv_value INTO gt_where SEPARATED BY space.
APPEND gt_where.
CLEAR gt_where.
READ TABLE <fs_t_rson> ASSIGNING <wa_rson> ( gt_where ). "Key clause
ENDIF. " if sy-subrc = 0. "Assign
ENDLOOP.
Thanks & regards,
Deepu.KTYPES: BEGIN OF line,
col1 TYPE c,
col2 TYPE c,
END OF line.
DATA: wa TYPE line,
itab TYPE HASHED TABLE OF line WITH UNIQUE KEY col1,
key(4) TYPE c VALUE 'COL1'.
FIELD-SYMBOLS <fs> TYPE ANY TABLE.
ASSIGN itab TO <fs>.
READ TABLE <fs> WITH TABLE KEY (key) = 'X' INTO wa.
The internal table itab is assigned to the generic field symbol <fs>, after which it is possible to address the table key of the field symbol dynamically. However, the static address
READ TABLE <fs> WITH TABLE KEY col1 = 'X' INTO wa.
is not possible syntactically, since the field symbol does not adopt the key of table itab until runtime. In the program, the type specification ANY TABLE only indicates that <fs> is a table. If the type had been ANY (or no type had been specified at all), even the specific internal table statement READ TABLE <fs> would not have been possible from a syntax point of view. -
Creating dynamic field in the form
Hi,
How to create a dynamic block?
The item in the block could be autochanged with the changing of
table's field.
I don't want to rebuild the form.
Thanks!You can base a block on a from clause.
SO base your block on something like
select ename a, deptno b from emp;
define 2 fields in the block a and b.
Now you can use set_block_property to change the underlying SQL
for example select dname a ,loc b from dept. -
How to add the date field in the dso and info cube
Hi all.
I am new to bi 7. in the earlier version v hav to button to add the date field. but in the bi 7 der is no option so can any body tell me how to add the date field in the data targets
Thanks & Regard
KKmy prob is solved
KK -
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 to use the separate symbol in the text field in the adobe form.
Hi,experts,
I dont know how to use the separate symbol to make a paragraph separate into several lines correctly in the text field in the adobe form.
Action:
1. config the ADS successfully.
2. create the adobe form with a mult-line textfield(binding the 'remark' context in the interface of the form) using sfp.
3. create a WDA for invoke the form and transfer the 'remark' context data.
I use the following codes to display the paragraph in the PDF document:
CONCATENATE
'1、aaaaaaaaaaa;'
'2、bbbbbbbbb '
'3、ccccccccccc'
'4、ddddddddd'
INTO remark .
lo_nd_z_hr_php_payslip->set_attribute(
EXPORTING
name = `REMARK`
value = remark ).
But I found all the content aren't paragraph separate correctly in the text field in the adobe form when I run the WDA.
Could you please give me some hints to make the paragraph separate correctly in PDF document? Thanks a lot in advance!
My email is : [email protected]
Best regards,
Tao
Edited by: wang tao on Apr 8, 2008 1:58 AMHi,
If it is just a one word value then you could use this in the exist event;
this.rawValue
= util.printx(">?<*",this.rawValue);
This changes the first character (represented by the ?) to uppercase (represented by the >) and all trailing characters (represented by the *) to lowercase (represented by the <).
If you wanted something more general ... if they could also enter a middle name then you could call a function like;
function toTitleCase(textValue)
return textValue.toLowerCase().replace(/\b[a-z]/g, function replacer(match) { return match.toUpperCase(); });
This uses a regex to change all lowercase letters following a word boundary to uppercase.
Bruce -
How to add an input field in the web UI of CRM 2007
Hi everybody.
I want add an Input field in the Web UI Screen. How it is possible.
I want get the information with detailed descriptions if possible with screen shorts.
What type of methods it will be generated and what are the code we entered in those methods.
Take according to any example. But with detailed description.
I am new for the CRM 2007. So, please give the screen shorts with proper data.
Not only adding the field. If any data i entered in the adding field then that will be stored in the tables otherwise no use by adding the field.
So, Can anybody please send a proper information according to this.
Here another one How to Add our own table (Ztable) field in the Web UI Screen.
How to add the same field in the BOL.
Please expalin about those concepts with full of screen shorts messages.
Thank You.
Regards,
Krishna.If you want to add extra standard fields (like one you mentioned), you can use Component Workbench and Copy the configuration and create your own configuration and make the "Available Fields" appear there.
If the standrd field is not available, you can Add Context Node using wizard and make it visible.
If its a custom field (a new one); you will have to use EEWB and add the fields and then make it visible in the UI using Component Workbench.
Regards,
Alin -
How to add a custom field to the "Projects" page "Group by" data menu list
Hi,
I'm deploying Project Online and I want to group projects by a custom field on the "Projects" page. Currently I can see options for group by Project Name, Start, Finish, % complete etc. I would like to group by a custom field of programme name
which is filled in on the Project Details form.
I can create the enterprise field etc, however I can't work out how to make the new enterprise field appear in this list. Or am I barking up the wrong tree and should be creating separate Project Types for each programme?
Any help an advise greatly appreciated.
Regards,
ConradHello, add the programme field to the Project Center view then it will be available to group by. Paul
Paul Mather | Twitter |
http://pwmather.wordpress.com | CPS -
How to add a new field in the Field Mapping
Dear Freinds,
I have two un used fields in the Source fields to the Target Fields ,
i have to add the 3 fields which r there in the my source fields to that
of the target fields ( as per the change in the requirement) in the 5th Step
i.e Maintain Field Mapping and Conversion Rules
the Target strucutre & the Source fields( by clicking the button
Source field and selcting the fields from the popup menu) in the mapping and conversion step ,i want to add 3 fields which are availabe in the list of th source list which i want to map to the Target strucutre .
When i tried it is adding in the othe target field
presently i have mapping (5th sept ) as below.
ZPA30_08 LSMW
Fields
TABNAME Table Name
Source: ZP0008_STRC-PERNR (Personnel Number)
Rule : Default Settings
Code: ZPA30_08-TABNAME = 'ZPA30_08'.
TCODE Transaction Code
Rule : Default Settings
Code: ZPA30_08-TCODE = 'PA30'.
now i want to add 3 fields Pernr,wage type and Amount , but when iam trying it is
getting and saved in the TABNAME .
How can i map please let me know .
Regards
syamlaHi,
So you need that this new field have data in old records?
1.- If you are in BI 7.0 and the logic or data for that New field are in the same Dimension, you can use a Remodeling to fill it. I mean if you want if you want to load from a Master Data from other InfoObject in the same Dim.
2.- If condition "1" is not yours.
First add the new field, then create a Backup Cube (both cubes with the new field) and make a full update with all information in the original Cube. The new field willl be empty in both cubes.
Create an UR from BackUp_Cube to Original_Cube with all direct mapping and create a logic in the Start Routine of the UR (modiying the data_package) you can look for the data in the DSO that you often use to load.
To do that both cubes have to be Datasources ( right click on Cube-> aditional function-> and I think is "Extract Datasource")
Hope it helps. Regards, Federico -
How to add a Custom field in the Standard SAP Sales Order main screen
Dear Experts,
We have a requirement of adding a Custom field in the Sales Order screen. I know how to add the Customer field in the Additional data B tab of the Sales Order Header Screen as that is the screen user exit provided by SAP. Can someone tell me how to add the Custom field in the Sales Order main screen. Program Name - SAPMV45A and Screen Number - 4001. What is all I need to take care.
Thanks,
SNK.I have not added the Custom filed in the main screen and added in the Additional data B screen. So closing the message.
Maybe you are looking for
-
i have read all of the numerous and similar issues on this subject. and i still cannot connect my new airport extreme. my old airport express works fine still. help. and why are there so many issues with connecting this stuff? i thought this stu
-
Creation of logical standby in 9i from physical standby
Hi all, I want to create logical standby from physical standby in 9i. can anyone send a doc for this
-
Need help with Apple TV connected to a Bose system
I have a new Apple TV that I have installed with a Bose Lifestyle 28 home theater system connected by an optical cable. The TV is also connected to a Directv box with the Directv box being connected to the Bose system via an Optical cable. I get D
-
RM-CA - bapi or FM for creating RMCA document (trx FPE1)
Hi all, anyone know if there is the possibility to create with bapi or FM a RMCA document, the manual transaction is FPE1. I know the FKK_CREATE_DOCUMENT, but the iusse is to simulate the creation processing open item of another document. any help is
-
In need of Fixed-point algorithm
hi peeps, Im in need ( a very urgent need ) of a fix-point algorithm , with explanations if possible. Can anybody point me to the right direction? thanks....