cancel
Showing results for 
Search instead for 
Did you mean: 

Changing row's background color

0 Kudos

Hi,

I want to change row background color, after I change another input field.

The input field is Date/Time Field.

I write following JavaScript in the exit event of the field.

XXTable.RowX.fillColor = "200, 200, 200";

But this does not work.

I write the following JavaScript at docReady event in the Cell in the RowY.

RowY.fillColor = "200, 200, 200";

It works well. So I look the gray row at first.

What's the difference between these? What's wrong?

Please teach me.

Regards,

Hiromitsu

Accepted Solutions (1)

Accepted Solutions (1)

harman_shahi
Contributor
0 Kudos

Hi Hiromitsu,

Use the following JavaScript Code:

Table1.RowX.border.fill.color.value = "200,200,200";

Note: To manipulate the background color of objects at runtime, you must save your form as a dynamic PDF.

hope this helps,

harman

0 Kudos

Hi Harman,

I changed the logic that you tell, but nothing is changed.

I wrote following logic after "XXTable.RowX.border.fill.color.value".

XXTable.RowX.Cell2.fillColor = "255, 0,0";

Cell2 is a TextField. Only Cell2 turned red.

What is the "dynamic PDF"?

Isn't my pdf dynamic PDF?

Where is the configuration?

Regards,

Hiromitsu

Former Member
0 Kudos

Hi,

In your Adobe lifecycle Designer, open your form,

Goto, File --> Form Properties,

Goto the Defaults tab,

Select "Dynamic PDF" for the XDP Preview Format:

Click OK.

This setting will now allow dynamicity in your Form, when you view it in PDF Preview tab.

This will solve your problem.

Regards,

Arafat

0 Kudos

Hi Arafat,

I can't find "Dynamic PDF" in the Preview Type.

It shows "Interactive Form" or "Print Form".(Adobe LiveCycle Designer 6.0)

I use interactive forms for parts of WebDynpro, so interactive forms are executed by WebDynpro in the Developer Studio.

In this case, how can I change the property?

Regards,

Hiromitsu

Former Member
0 Kudos

Hi

If you using web dynpro then it is a requirement to have adobe lifecycle designer 7 sp 1 with a minimum of adobe reader 7.0.9

Regards

Thashin

0 Kudos

Hi Thoshin,

I also use Adobe Designer 7.1.

I configured "Show Dynamic Properties" to "On" in the Tools > Options > Data Binding > Dynamic Properties.

I preview in the Adobe Designer 7.1, it worked well!(I watched for the first time)

I did the same configuration in the DeveloperStudio,

but in the DeveloperStudio preview, it didn't work.

In my local PC's Acrobat Reader is 7.1.0.

What do I configure to work in the WebDynpro?

Regards,

Hiromitsu

Former Member
0 Kudos

Hi

"I can't find "Dynamic PDF" in the Preview Type.

It shows "Interactive Form" or "Print Form".(Adobe LiveCycle Designer 6.0)"

This setting should be "Interactive form" on the developer studio and below that you will see an option "XDP Preview Type". This should be Dynamic PDF.

Also make sure that your developer studio is picking up the right version of the lifecycle designer ie 7.1. Goto the help menu in the designer in the developer studio. Select "About...". If it is picking up the version 6 then i sugest that you uninstall version 6.

Regards

Thashin

0 Kudos

Hi Thashin,

I selected "Interactive form" in the Preview Type.

And I selected "Acrobat 7.0.5 Dynamic PDF" in the XDP Preview Format.

I checked the designer version in the developer studio, it's "About Adobe LiveCycle Designer 7.1".

Is this a bug of SAP Developer Studio? Otherwise using Adobe Reader 7.1.0 is wrong?

Regards,

Hiromitsu

Former Member
0 Kudos

Hi

I'm not sure if there is a bug. Is it still not working? What SP is your NW developer studio?

Regards

Thashin

harman_shahi
Contributor
0 Kudos

Hello Hiromitsu,

In WebDynpro-Java, to make the form dynamic try to write the code in the wdDoModifyView() method of your view where you create the child as Interactive Form

- Then deploy your application, and test it:

IWDInteractiveForm iForm1 = (IWDInteractiveForm) view.getElement("<name of your form here");
iForm1.setDynamicPDF(true);

Regards,

Harman

0 Kudos

Hi Thashin,

This is my version information.

NetWeaver2004s SP9 SneakPreview

DeveloperStudio 2.0.16

Regards,

Hiromitsu

0 Kudos

Hello Harman,

Your suggestion was correct!!

I did not have ideas that it was possible to set it with WD.

I solved my problem. I waited this!

But this is only a part of a lot of problems.

Thank you very much!

Regards,

Hiromitsu

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

Try placing the code in the Validate event of the date/time field.

Thanks

Thashin

0 Kudos

Hi Thashin,

I check for executing by showing dialog box.

When focus lost the field, the dialog box is shown.

So logic is executed.

But I transferred the logic to Validate evnet.

Timing is changed, but the processing is the same.

Regards,

Hiromitsu