Cell hiding problem in adobe form
Hi,
I am making a adobe form which contain 5 row and 5 column and i am filling this by using internal table . My requirement is : when internal table doesn't contain some column(means suppose column 4 doesn't contain any value then i want to hide from 4th column) value i want hide from that column dynamically.
Regards,
Durga
Hi Gupta,
Please refer the below links
Hiding a table column for a particular condition
Adobe Community: How to hide table with empty content using Javascript?
Hope this helps you.
Regards,
Rama
Similar Messages
-
PDF Attachment problem in Adobe form and send mail is not working
Dear Experts,
Recently i'm facing a problem regarding Adobe form PDF attachment and sending an e-mail along with the PDF attachment to customer mail id.But when i execute the RFC Function module, in customer side no mail is comming. And when i check the transaction SBWP then i found that the PDF attachment hold only 1KB of data which is not right.For that i'm sending my code which i was declared in my program.Can anybody please help me to overcome this problem?
Warm Regards,
sameek.
CLASS cl_bcs DEFINITION LOAD.
DATA:
lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
lo_send_request = cl_bcs=>create_persistent( ).
data: t_att_content_hex type SOLIX_TAB.
DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
DATA: lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
l_send type ADR6-SMTP_ADDR value 'Already provided an e-mail address here'.
DATA: lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
Message body and subject*
DATA:
lt_message_body TYPE bcsy_text VALUE IS INITIAL,
lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
APPEND 'Dear,' TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Please fill the attached form and send it back to us.'
TO lt_message_body.
append ' ' to lt_message_body.
APPEND 'Thank You,' TO lt_message_body.
lo_document = cl_document_bcs=>create_document(
i_type = 'RAW'
i_text = lt_message_body
i_subject = 'Customer Information Form').
TRY.
lo_document->add_attachment(
EXPORTING
i_attachment_type = 'PDF'
i_attachment_subject = 'Customer Information Form'
I_ATTACHMENT_SIZE =*
I_ATTACHMENT_LANGUAGE = SPACE*
I_ATT_CONTENT_TEXT =*
I_ATTACHMENT_HEADER =*
i_att_content_hex = t_att_content_hex ).
CATCH cx_document_bcs INTO lx_document_bcs.
ENDTRY.
Add attachment*
Pass the document to send request*
lo_send_request->set_document( lo_document ).
Create sender*
lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
lo_sender = cl_sapuser_bcs=>create( sy-uname ).*
Set sender*
lo_send_request->set_sender(
EXPORTING
i_sender = lo_sender ).
Create recipient*
lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).*
Set recipient*
lo_send_request->add_recipient(
EXPORTING
i_recipient = lo_recipient
i_express = 'X' ).
lo_send_request->add_recipient(*
EXPORTING*
i_recipient = lo_recipient*
i_express = 'X' ).*
Send email*
lo_send_request->send(
EXPORTING
i_with_error_screen = 'X'
RECEIVING
result = lv_sent_to_all ).
COMMIT WORK.
message 'The Customer Information form has been emailed to the Employee' type 'I'.I am also facing issue with email send .
apex 4.1.1 oracle 11g
create or replace procedure email ( p_email in varchar2)
is
l_workspace_id number;
l_subject varchar2(2000);
l_body clob;
l_body_html clob;
l_email varchar2(40);
begin
l_workspace_id := apex_util.find_security_group_id (p_workspace => 'xyz');
apex_util.set_security_group_id (p_security_group_id => l_workspace_id);
l_email:= p_email;
l_body := ' ';
l_subject := 'You have new tasks';
--if l_email=:P3_CONFIRM_EMAIL_ADDRESS is not null then
-- email( l_email =>:P3_CONFIRM_EMAIL );
-- end if;
l_body_html := '<p />The following tasks have been added.';
apex_mail.send (
p_to => l_email ,
p_from => '[email protected]',
p_body => l_body,
p_body_html => l_body_html,
p_subj => l_subject );
APEX_MAIL.PUSH_QUEUE;
end; I also check the log and queue but both are empty,
select * from
apex_mail_queue
select * from
apex_mail_log Kindly suggest what to do ?
I also created a process in apex , which call this procedure and pass the email address entered by user. -
Hi,
I have some problem in adobe form.................................
I have to design my adobe form in ADOBE DESIGNER layout.
and in the another end i have make my application programe in which i picke
some data from the sap tables. now my problem is that how can i send the data in
my adobe form from my programe i want to print that data on the form.
and always my programe is going to be notresponding.CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
EXPORTING
i_name = 'Adobe form name'
IMPORTING
e_funcname = lv_funcname.
IF sy-subrc = 0.
u will get the fm name here.....
use fb_job_open
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = gs_output
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION lv_funcname
EXPORTING
/1bcdwb/docparams = gs_outputpara
wa_data = <> pass value here....as per u r requirement.(interface)
PATH = <>
IMPORTING
/1bcdwb/formoutput = ls_return
EXCEPTIONS
OTHERS = 1.
FP_JOB_CLOSE
CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
regards
Anbu B -
Communication problem between Adobe Form and WebDynpro
Hi all,
I have the following problem and am thankful for any help I can get from you in order to solve it:
I created an Adobe Form in WebDynpro. In both the WebDynpro as well as in the Adobe Form, I created a Submit Button (which I binded to the same method) as well as a text field (which I binded to the same context attribute). When I do changes in WebDynpro, everything works fine and the changes are displayed in the Adobe Form as well.
But when I do changes in the Adobe Form, these changes are not submitted. Also the Submit button in the Adobe Form is not working.
I send the project to a colleague and she could deploy and run my project without any problems. So I think it is a problem with my settings or installation. I already did a reinstallation of the NW Developer Studio as well as the Adobe Lifecycle Designer. But it did not help.
Did anyone have a similar problem or has a suggestions what else I could do?
Thanks in advance,
ThorstenHi Thorsten,
If the submit button doesn't do anything, it usually means there's something wrong with your client software.
Are you using NW04s or NW04? NW04 only supports ACF (Active Component Framework) forms, whereas NW04s also supports ZCI (Zero Client Installation) forms (there're different Submit buttons in Adobe LiveCycle Designer). Reader 7.0.9 should definitely work in all cases, but Reader 8.0 (and Reader 8.1, released yesterday) doesn't work properly with ACF forms (there's an SAP note on this subject).
To use ZCI forms, all you need is Adobe Reader at client side. To use ACF forms, you also need some other client software: either (the correct version!) SAP Active Component Framework (stand alone software that you can download from SAP Marketplace; it's part of some SAP note; search for xACF and select the correct version of the note). A better option is not to install xACF manually (uninstall it if present, using Control Panel > Add/Remove programs), but to use the ActiveX control instead (reinstall it in your case because of the problem you have). First kill the AcroRd32.exe process, if it is running. Then go to "C:\WINDOWS\Downloaded Program Files" and delete the file AdobeControl(s) (NW04) or AcfControls (something similar; NW04s) if present. Then access your form in your Web Dynpro application using IE (Firefox doesn't support ActiveX; the only option is to use ZCI forms with non-IE browsers). If all goes well, prior to displaying the form, IE should ask to install an ActiveX control (it will only be asked if you have sufficient privileges, that is belong to the local Administrators group).
Kind regards,
Sigiswald -
Problem in Adobe Form Execution
Hi,
I am getting an error "ADS: SOAP Runtime Exception: CSoapExceptioFault: SOAP(100102)" while executing Adobe Form.
It seems the ADS configuratoin is not correct. Can some help me out in fixing this issue.Hi Sathish,
To check the Present configuration do the following:
1.1 Checking by Executing Test Report FP_TEST_00
Use
This test report checks if your system is configured correctly for processing forms in an ABAP environment.
Procedure
1. Log on to your SAP Net Weaver AS ABAP.
2. Call transaction SA38 and enter the name FP_TEST_00.
3. Choose Execute (F8). A dialog box is displayed.
4. Enter FP_TEST_00 in the field Form.
This is displayed as the default form name.
5. Enter the name of the connection to the ADS. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
6. In the dialog box, choose Output in Print Preview.
7. Enter an appropriate device type in the field Output Device.
8. Choose Print Preview.
On successful execution of the report, you find the Print Preview of the PDF form.
If the Configuration is not correcr no form is displayed.
The following steps are only necessary, if the result of the above test was not successful.
2. Check the ABAP Connection
3. Check the User and Password
4. Check the Destination Service
1.2 Checking the ABAP Connection
Use
This is a test for checking the RFC destination. This test applies to both connections using Basic Authentication and SSL connections.
Procedure
1. Log on to your SAP system.
2. Call transaction SE38.
3. Enter the name of the test report FP_PDF_TEST_OO.
4. Enter the name of the connection. Enter the default name ADS, or, if you have specified another name, the one you are using in your system.
5. Choose Execute (F8).
Result
If the configuration is correct, the system displays the version number of the Adobe document services.
If the configuration is not correct, the system displays a corresponding message.
or
Go to the following link to download the complete ADS configuration guide:
[https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2]
Hope to solve your problem.
Regards,
Vaibhav Tiwari. -
Problem with adobe forms multiple pages
Hi
can someone help me how to get multiple pages in adobe forms in case the item lines exceeds the page capacity?
ThanksIt should not be much of a problem. Here is a detailed solution to your problem:
In your context , create a node MasterNode of cardinality 1...1 and singleton set to true. Bind this to the dataSource property of the InteractiveFormElement.
Inside this MasterNode create a node Data of cardinality 0...n and singleton set to false. Keep all of your payslip attributes inside this node.
In your interactive form element , in the Body Page create a subform of Type Flow Content and Flow Direction Table .Check the chechbox for Allow Page Breaks within Context . Inside this subform create another subform of Type Flow Content and Flow Direction Western Text . Uncheck the checkbox for Allow Page Breaks within Context . Put all of your pay slip UI elements inside this subform and bind them with the attributes under the node Data. Also tick the property of the inner subform under the section Object->Subform that says Repeat Subform for each Data Item
In your view controller coding area , create an element of the node Data for each employee record and populate it with values for the particular employee .
Add all of the elements that you created into an ArrayList and bind this ArrayList to the node Data. Now your form is ready for n number of employees.
Put this sort of coding in your view controller coding:
IDataElement objData = null;
ArrayList arlData = null;
int intNumberOfEmployees=0;
try
arlData = new ArrayList();
intNumberOfEmployees = //Get size of your model node that returns employee info
if(intNumberOfEmployees>0)
for(int i=0;i<intNumberOfEmployees;i++)
objData = wdContext.createDataElement();
objData.setName("//Value fetched from backend here");//Eg:wdContext.nodeEmployeeInfo.getEmployeeInfoElementAt(i).getname()
//Similarly set all of the values
arlData.add(objData);
wdContext.nodeData.bind(arlData);
Hope this helps you... -
Hi experts
I am trying the tutorial on SDN - 'How to Execute an RFC Model with Input from Interactive Forms'. When I click on submit on the adobe form and the action handler executes,
wdThis.wdFirePlugOutToFlightDetail();
the browser closes without any error message.
How can I know what is the cause or where am I going wrong.
Regards
Abdullah
Message was edited by:
Abdullah Ismailthe problem was in ACF
-
Hiding Pages in ADOBE form using formcalc scripting.
Hi Experts,
I am new to ADOBE form and currently working on invoice print output. (NOT an Interactive adobe form)
My requirement is
i wanted to print one main page and 5 different annexures(anexures are having different layouts so is in diff forms and contained in diff pages)
Deppending on 'Oreder reason' (made as global variable) , i need to select appropriate annexure and print
main page and any one of the annexure.
so i should hide all other annexure, to achive this i used formcalc scripting.
i tried hiding annexure 2 by following code,
data.Annexure2::ready:form - (FormCalc, client)
if ( data.G_F_ORDER_REASON.rawValue == "ANX" )
then $.presence = "hidden"
endif
i have passed value 'ANX' to this , i could see the value of order reason printed on page Annexure2 but it is not executing (getting in to if condition) condition and not hiding the page ...
Experts please help me...
this way i have to hide 4 other annexures...please help me or give me some other option to achive this.
thanks and regards
varun
Edited by: skyblue on Aug 6, 2011 3:30 PMcoding Formcalc is a pain.
But you're doing the right thing by passing in a variable and hiding based on the content of it.
Here's an example of where I'm hiding a subform on a page.
if ( main_sf2.charter_only.CHARTER_DOC.rawValue eq "X" ) then
main_sf2.pts_sf.presence = "visible"
else
main_sf2.pts_sf.presence = "hidden"
endif
Looks like your code is similar - try changing
( data.G_F_ORDER_REASON.rawValue == "ANX" ) to
( data.G_F_ORDER_REASON.rawValue eq "ANX" )
or instead of $.presence = "hidden" fully qualify the name of your page to data.Annexure2.presence = "hidden" -
Merge cells at runtime in Adobe Form
Help.
I have 6 columns in a table .
I need to write a script in adobe form to check the value of the 5th column
if 5th column = 'T' then I need merge 1th,2th,3th columns
If 5th column = ' ' then do nothing
I write JavaScript
data.#subform[0].TABLE.DATA::initialize
if ( this.COLUMN5.rawValue == "T" )
this.COLUMN1.colSpan = "3" ;
The cell's merged but not correct. In the row with column = 'T' appear the new columns.Well you are on right track. Just use the code in your first post and second post for complete solution.
I tried with a simple table with 1 row and below is the JavaScript code I used in the initialize event of Subform:-
Table1.Row1.Cell5.rawValue = "T";
if(Table1.Row1.Cell5.rawValue == "T")
Table1.Row1.Cell1.colSpan = "3" ;
Table1.Row1.Cell2.presence = "hidden";
Table1.Row1.Cell3.presence = "hidden"; -
Hi all,
I am creating an adobe form. When i click on "layout" tab, it's giving me a message like..
Could not start Layout Designer (see long text)
How to resolve the problem?
Thanks
NiteshYou need to install Adobe LiveCycle Designer. Please check with your BASIS team.
For more info check this article,
http://www.adobe.com/manufacturing/pdfs/bwp_interactive_forms_adobe.pdf
Regards -
go to palettes and select script editor. you will find a white colored editor.
Click on the subform which is to be hidden in the heirarchy.
Select Initialize from the drop down list on the editor. And select Language as FormCalc.
You'll get the white space in the editor to write the code.
if the subform which is to be hidden is SUBFORM1.
then write the code as follows
$.SUBFORM1.presence = "hidden"
this will hide the sunform.
if the hiding of the subform is dependent on any condition then we can write the code as follows
if ( condition ) then
$.SUBFORM1.presence = "hidden"
endif
this code will hide the subform and all the elements in the subform only if the condition is satisfied.
Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms", not a question anyway, if you'd like to share ideas/code samples, please use the wiki space.
Edited by: Thomas Zloch on May 10, 2011 10:29 AMHi,
This has been discussed many times in the forum. Check the following thread.
hide a row or field in adobe form
Thanks,
Aravind -
Printing Problem in Adobe Forms
Hi,
We have created Adobe Form and it is working fine but the problem is with printout. when we issued output and click on
print, the output comes with larger font size. Is there any settings in output parameters for printing same as print preview?
I will be very greatful if any one update on this.
Thanks & Regards,
Venkateswararao GHi,
Please refer to SAP Note 1503523.
Regards, -
Hi experts
I am trying the tutorial on SDN - 'How to Execute an RFC Model with Input from Interactive Forms'. When I click on submit on the adobe form and the plug is fired using,
wdThis.wdFirePlugOutToFlightDetail();
the browser closes without any error message.
How can I know what is the cause or where am I going wrong.
Regards
AbdullahHi,
Where did u call the Interativeform in the firstview or second view.
Generallay what happend here is After executing the function module you are calling the second view that displays second view with pdf.
check with your second view plug-ins once again?
Otherwise call your pdf into your first view and try?
Before this u said worked and PDF was displayed.
try in initial View then try to go second view.
thanks,
Lohi. -
Blank Space problem in Adobe Form
Hello Gurus,
In my Adobe form, One field has to be displayed based on a condition. So, for that field, in Context tab, condition is specified and its working also i.e. It condition is true then data is not displayed in the layout but I find the blank space for it. I dont want that blank space to be displayed.
Example:
In layout, address is in format as shown below.
Name
Street
City
Region
Postal code
Country
Here, I have a condition that, Region field should not be displayed only for Material eq '123' i.e. same address has to be printed as shown below.
Name
Street
City
Postal code
Country
But, If I give condition then address is shown as below.
Name
Street
City
>Here, am getting empty space & I dont need this blank space to there in the layout.
Postal code
Country
So, Can anyone please help me for this.
Thanks in Advance.
Regards,
UshaHi Usha,
1. Remove the Condition from you Context tab.
2. In the Driver Program check for the condition and fill the value in the internal table which is passed to
the adobe form.
3. Make the subform (under which the field is added in the hierarchy view) as flowed.
4. In the script editor, Select the 'javascript' and write the script to hide the form field specifying the condition here.
for e.g
if (xfa.form.FORM.SUB_FORM.matnr == "123") {
xfa.form.FORM.SUB_FORM.Region = "hidden";
NOTE: Javascript is Case sensitive and stops working immediately after the line of code where an error occurs.
Hope this proves to be useful.
Thanks,
Swar. -
Components/Software Installation Problem for Adobe Form
Hi all,
I am new to developing Adobe forms. I only experience in smartforms on SAP R/3 environment.
To start doing Adobe form, I have installed Adobe LiveCycle Designer ES (Is it correct?), .net Framework 2.0, SAP GUI 7.1. I already have Adobe Reader 7.0 on my desktop.
However, when i created a form in Tcode SFP, I couldn't open the layout, prompted me error and forced to exit.
Then I configured Adobe Document Services for Adobe Reader 7.0 but in vain. Actually i am not sure how to get Adobe document services and not sure whether really need it.
Can anyone help?
Thanks in advance!Hi,
All SAPWIN-type device types cannot be supported with the Adobe technology alone. See also the new development PPDFPRINT 7.20 in Note 1444342.
You can print PDF-based forms on all printers installed in the SAP system as long as the relevant XDC file (printer definition in XML format) exists. SAP delivers XDC files for the following SAP standard device types:
- POST2 - PostScript
- HPLJ4 - PCL black and white
- HP9500 - PCL color
- PDF1 - PDF
- AZPL203 - ZPL (Zebra label printing)
- AZPL300 - ZPL (Zebra label printing)
You can modify XDC files yourself within a limited scope. Documentation about this is available on SAP Service Marketplace at
http://sdn.sap.com/irj/sdn/adobe-> SAP Interactive Forms - Configuration Guides
These XDC files must be saved at runtime on the host that also contains the Adobe Document Services. The exact path
usrsap<SID>SYSglobalAdobeDocumentServiceslib.
In addition to the XDC file, an entry must also exist in the TSP0B table on the SAP system. This entry assigns an SAP device type to an XDC file. Only if the assignment entry exists, you can print PDF-based forms on the printers with the relevant device type. You can maintain the TSP0B table with the RSPO0022 report. Refer to the online documentation for information
about how to use the report.Important: You cannot change the XDC files delivered by SAP or the TSP0B entries. If a change is required nevertheless, you should first create a copy of the relevant device type with another name in transaction SPAD.
Then create a copy of the XDC file with a different name and make the relevant changes. The new XDC file must be copied to the directory mentioned above on the server that contains the Adobe Document Services.
Regards
Bhuban
RKFL
Maybe you are looking for
-
Problems with video podcast iPhone downloads..HELP!!!!
When I download a non video podcast all is well, however it does not sync to my iPhone. After it is downloaded with iTunes it shows up as downloaded.. the get is nolonger visible. When I try to download a video podcast, I select get it downloads and
-
Acquired a 2007 Imac 5,1 - need help
I have been given a 2007 Imac after my old work office closed down. I am a Newbie to macs so am a bit lost. Its an Imac 5,1 Intel Core 2 Duo processor 2.16GHz Memory 1GB Operating OS X 10.4.11 I dont think it runs as fast as it should. Probably has a
-
Report format - Please help urgently
We have an AR report with the following format. Customer - Document No -Payment terms Currently, the report rows shows for one customer ( Text and Key) for various document number and Payment terms. Example: Customer 1 - Document no1 - payment terms1
-
How to code the ejbCreate() method without initailizing primary key?
Hi all, I've just started learning about EJBs, and now am at the stage of learning how to create, deploy and test a CMP Entity Bean. Ran into a problem which I'm hoping someone can help out with. I'm using SQL Server 2000 as my backend database, and
-
Does anyone know when IOS 5.01 will be released?
Yesterday I dowloaded the new OS and now my ipad is dead - COMPLETELY! tried rebooting, tried starting in recovery, tried uninstalling i tunes 5 times and cleaned reg. I have reviewd all the articles posted and cannot find anything to fix it. All i g