SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

Adobe Forms динамическая окраска edge



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
firacat
Специалист
Специалист



Joined: 20 Apr 2011
Posts: 80
Location: Ukraine

PostPosted: Thu Mar 21, 2013 12:16 pm    Post subject: Adobe Forms динамическая окраска edge Reply with quote

Добрый день,

Подскажи те кто знает как сделать обработчик для таблици которая выводится в PDF форме, по опеределенному условию чтоб в определенной колонке для каждой позиции в зависомости от условия окрашевалась один пордер, у меня почему-то окрашевает все ячеки одним цветом, а необходимо чтоб разнвыми, заранее спс за помощь

Приведу ниже пример кода

Code:


 data.#subform[0].#subform[2].IT_SPFLI.DATA.DEPTIME::ready:form - (FormCalc, client)

if($record.IT_SPFLI.DATA[0].DEPTIME > "060000" or $record.IT_SPFLI.DATA.DEPTIME < "120000") then
$.border.edge[3].thickness = "2mm"
$.border.edge[3].color.value = "255,153,204"
endif;

if($record.IT_SPFLI.DATA[0].DEPTIME > "120000" or $record.IT_SPFLI.DATA.DEPTIME < "180000") then
$.border.edge[3].thickness = "2mm"
$.border.edge[3].color.value = "72,209,204"
endif;


Back to top
View user's profile Send private message
firacat
Специалист
Специалист



Joined: 20 Apr 2011
Posts: 80
Location: Ukraine

PostPosted: Thu Mar 21, 2013 1:32 pm    Post subject: Reply with quote

Уже вопрос решился, может кому пригодится привожу код

Code:

data.#subform[0].#subform[2].IT_SPFLI.DATA.DEPTIME::initialize - (FormCalc, client)

if($.rawValue > "060000" and $.rawValue < "120000" ) then
$.border.edge[3].thickness = "2mm";
$.border.edge[3].color.value = "17,242,24";
endif;

if ($.rawValue > "120000" and $.rawValue < "180000" ) then
$.border.edge[3].thickness = "2mm";
$.border.edge[3].color.value = "17,43,242";
endif;

if($.rawValue > "180000" and $.rawValue < "240000" ) then
$.border.edge[3].thickness = "2mm";
$.border.edge[3].color.value = "242,17,100";
endif;

if ($.rawValue > "000000" and $.rawValue < "060000" ) then
$.border.edge[3].thickness = "2mm";
$.border.edge[3].color.value = "242,242,17";
endif;
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.