Saturday 28 January 2012

XML publisher and DataTemplate- Report Generation (XML Report without RDF)



 
Step1: Create a XML file
Picture
STEP 2: Create a RTF file .
  In this  the RTF(Rich Text Field) is used to insert the xml tags
  To insert this goto> Customize Quick Acess Toolbar > more commands > all commands > INSERT FORM FIELD à add it.

Then select the field you want and press the INSERT FORM FIELD button which is press at toolbar in green symbol.
Picture
Picture
Here "INSERT FORM FEILD" is taken for link creation
Picture
Now double click > press ADD HELP TEXT > write in xml tags the field name  >
<?field_name?>
Picture
Picture
Picture
Step3: Now create Data Definition in the "XML PUBLISHER"Responsibility.
and .XML file is attached.
Picture
Note:
Here the  "CODE"name   and the Concurrent Program "SHORT"name should be same.
Picture
.XML file is attached at Data Template
Picture
Step4:
Now Data template is created in the "XML PUBLISHER" Responsibility.
Template i.e.. (RTF template) is added at FILE option.
Picture
Step5: Create a Concurrent program in the Responsibility of that APLLICATION.here the Executable file name should be always "XDODTEXE"   and output format as XML
Picture
Picture
Step 6:Program is added to the "Application" in the "System Responsibility"
Picture
Step7:Request should be raised in the same Responsibility where Concurrent program is created.
Picture
Picture
OUTPUT:
Picture
 
 

Q)  Hiding the Person, Customer and Fax fields of the User form

Step 1: open the users form in the System Administrator

Picture

Step 2:  goto > Help > Diagnostics > Custom Code > Personalize
This is to personalize the form according to the requirement.

Picture


Step 3:
Seq : 11
Description: hiding the person,Customer and Fax feilds of the user form
level: Function  ,  Enable: Yes
condition:
               Trigger Event: WHEN-NEW-FORM-INSTANCE
               Processing mode: Not in Query Mode
  context:
                Level: Responsibility
                Value: System Administrator    

Picture


Step 4:
Actions tab:
seq:1
type: property
Description: person
language: all,  Enabled: yes
object type: ITEM
target object: USER.EMPLOYEE_NAME
property name: DISPLAYED
Value: FALSE
Next Press VALIDATE   and APPLY NOW

Picture

Out Put : Here we can see the fields(person,customer,fax) are                   hidden.

Picture

No comments:

Post a Comment