Light Indicator based on condition.
Hello Experts,
I am displaying some data in a table. Now i want some light indicator on row level based on a value of a perticular row.
I tried it by creating a attribute of string type and bind it to the UI element of the table of Image type. Now i am setting the value based on certian condition . But the light is coming only for the first row. But i want those light in every rows of the table.
Can you please tell me if i missed some thing .
Thanks,
Satya
Hi Srilatha,
Here you go..
loop at it_tab_ctrl into wa_tab_ctrl.
if wa_tab_ctrl-days LT 100.
DATA lv_light TYPE wd_this->Element_output-light.
navigate from <CONTEXT> to <OUTPUT> via lead selection
lo_nd_output = wd_context->get_child_node( name = wd_this->wdctx_output ).
get element via lead selection
lo_el_output = lo_nd_output->get_element( ).
@TODO handle not set lead selection
IF lo_el_output IS INITIAL.
ENDIF.
set single attribute
lo_el_output->set_attribute( name = `LIGHT` value = 'ICON_LED_GREEN' ).
elseif wa_tab_ctrl-days GT 100 and wa_tab_ctrl-days LT 105.
navigate from <CONTEXT> to <OUTPUT> via lead selection
lo_nd_output = wd_context->get_child_node( name = wd_this->wdctx_output ).
get element via lead selection
lo_el_output = lo_nd_output->get_element( ).
@TODO handle not set lead selection
IF lo_el_output IS INITIAL.
ENDIF.
set single attribute
lo_el_output->set_attribute( name = `LIGHT` value = 'ICON_LED_YELLOW' ).
else.
navigate from <CONTEXT> to <OUTPUT> via lead selection
lo_nd_output = wd_context->get_child_node( name = wd_this->wdctx_output ).
get element via lead selection
lo_el_output = lo_nd_output->get_element( ).
@TODO handle not set lead selection
IF lo_el_output IS INITIAL.
ENDIF.
set single attribute
lo_el_output->set_attribute( name = `LIGHT` value = 'ICON_LED_RED' ).
endif.
endloop.
Thanks,
Satya
Similar Messages
-
How can i get the amber/green light indicator on the AirPort Express. It has stopped working.
If I do a factory reset, will I have to reset the network configuration?
Yes, but based on what you are telling us, I doubt that the device will restart after you try this. You have tested with other AC wall jacks, correct?
I just purchased the unit in April this year, it would be very soon to have to replace it, especially since I don't think I kept the receipt...
Most stores keep a record of purchases. Otherwise, Apple support can look at the serial number and know approximately when the device was sold. You should have no problem getting a replacement, I would imagine. -
How to blink TreeView Nodes based on condition c#
suppose i am populating my tree view with data from database and i want to blink those nodes which has a specific data. now guide me with code how can i efficiently blink multiple tree view nodes based on condition in winform application.
Hi Mou_kolkata,
>> anyone can give me small working code for tree node blinking
Thank Armin for the details about blinking TreeView Nodes.
For a simple demo to blink TreeView nodes, you could refer the link below:
# Treeview control - How to make a node blink?
https://social.msdn.microsoft.com/Forums/en-US/64e7a4d7-3098-4370-990f-390cb3a640a1/treeview-control-how-to-make-a-node-blink
If you have issues when you blink Treeview nodes, please feel free to post a new thread in this forum, then you would get more help.
Best Regards,
Edward
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to create additional Line in file based on condition available as part of ZINVOIC02 Idoc segment
Scenario Details:
Receiving Zinvoic02 Idoc in PI. Idoc to file translation creates comma separated file with .csv extn
The logic was kept in such a way that how many E1EDP01 (items) are available in IDoc that many no of records will be created in csv file.
The file logic for some the fields is as below:
No of records
InvNumber
InvDate
CusNumber
LineitemDesc
Tax1Type
Tax1%
for 1st E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
Populate when E1EDP04/MSKWZ=O2 or O4 with E1EDP19/KTEXT
Hardcode when E1EDP04/MSKWZ=O2 or O4
Sum all E1EDP04 /MSATZ when E1EDP04/MSKWZ=O2 or O4
for 2nd E1EDP01
E1EDK01-BELNR
E1EDK01-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
for 3rd E1EDP01
E1EDK01-BELNR
E1EDK03-DATUM
E1EDK01-PARTN
same as above
same as above
same as above
Additional Line to be created when one or more of E1EDP01 is having E1EDP04/MSKWZ = O3
same as above
same as above
same as above
Hardcode "REIM for USE TAX"
Hardcode ""
Hardcode ""
Now we have got addition requirement to add a new lineitem when tax code is equal to O3 for any of the E1EDP01.
Is it possible to create additional lineitem based on condition. If yes, please share what should be the approach.
How we can create the additional lineitem?
Currently we are using E1EDP01 to do context handling.
The target structure is :
MT_FILE
INVOICE 0..unbounded
InvNumber 0..1
InvDate 0..1
CusNumber 0..1
LineitemDesc 0..1
Tax1Type 0..1
Tax1% 0..1Hello,
Please add one extra field in the data structure of the target mapping and let its occurrence be 0..unbounded under the root node 'MT_ADP_Invoice'.
Apply the condition, if tax code MSKWZ (with its context changed to E1EDP01) equalsS to '03', then map it to the newly created target field whose occurrence is 0..unbounded.
This will then create an additional field which is your requirement.
The above is one way.
But if you want to have the same target field name as ADP_File appended for tax field being '03'.
Then in that case you can you two message mapping for one common operational mapping / interface.
In the first message mapping you need to have one target data structure created with the source data structure remaining the same as the one shown by you in scrn shot. Now this target data structure will be similar to the source, except that you need to add one more field at the end(name different from other fields) in target (whose occurrence should be 0..unbounded), and it needs to be mapped to E1EDP01 provided the tax code field MSKWZ(its context changed to E1EDP01) equalsS to constant '03'.
In the second message mapping you need to map the target structure of previous message mapping to the actual required structure. The newly added field should be mapped to ADP_File of your final target structure.
This will then create the same structure as required.
Note : Please change the occurence of ADP_File to 0..unbounded.
Regards,
Souvik -
How to give color to the display of keyfigure based on condition using exception.
Dear Friends.
I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
What I am trying to do is :
in Query designer :
I have PO Quantity and Delivered Quantity.
if PO Qnantity > Delivered Quantity
then Delivered Quantity field should be colored as "BAD3" in exception.
but here proble is in exception
I have alert level , operator, and value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
but for value field I dont have PO Quantity for that I have to supply one formula variable,
When I created a forumula and did this way
FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
Please help me How I can solve my problem
I will greatly appreciate your any help.
Thanking you
Regards
NaimThank you so much for your replies,
I did following way and it helped me to solve my issues.
I created one formula and under formula I use boolean < funtion to compare the values.
like following way.
( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
Thanks again for your replies
Regards
Naim -
Hi,
my requirement is to call webdyn pro screen from workflow..
i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
Please help how to stop work item complete based on conditions.
Thanks,
phaniHi,
As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
You can refer below link for web dynpro for workitem:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&… -
Table Control - Input Enabling/Diabling of Rows based on Condition.
Hi,
In the TC, I want to Input Enable/Disable the rows based on Conditions. The First row is input enabled always. But the other rows, (2nd onwards) need to be Input Enabled/Disabled based on some conditions. It is possible to make this working. Can you please provide me a suitable solution for this?
Appreciate Your Help.
Thanks,
KannanHi Kannan...
If we are talking about "Rows"...
then identify based on some conditions the row numbers and in PBO...loop at screen with screen name..set thier input properties and modify screen (make them input only)
If we are taking into consideration "columns"
There is an internal structure COLS where we can identify column number of screen name ...or we can take except for one particular column..
if some condition satisfied....
loop at screen where screen-name <> "Column which is input'.
Loop at screen...and make other columns display only.
modify screen
endif.
Regards
Byju -
Need to send notification to a specific person based on condition
Please help.
I need to send notification to a specific person based on condition. When a specific hold is placed on an invoice, send a notification to the Buyer who is referenced on the Purchase Order that is associated with that invoice. It will be an FYI notification.
I'm looking at APINVHDN AP Hold Maiin Process. I thought possibly adding a notification into the "No" condition after the GET_APPROVER function since there would not be an approver on the invoice since it's on hold.
Any ideas would be very much appreciated.Try the LiveCycle Designer forum.
-
Calling different pages in a single sap script based on conditions?
Hi All,
Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
Please help
Regards
PriyaThis approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
SAPscript -
/: Perform get_date in program z_at_date
/: using &p_year&
/: changing &new_date&
/: endperform.
program z_at_date -
form get_date TABLES rec_in STRUCTURE itcsy
rec_out STRUCTURE itcsy..
DATA:
v_year type char10.
sap script and subroutine uses itcsy structure to transmit parameters
first parameter is incoming while second parameter is out going
their function is like an internal table with header line
all data types between SAPscript and subroutine are string.
so, you might need additional conversion.
read incoming parameter with exact name from SAPscript
READ TABLE rec_in WITH KEY name = 'P_YEAR'.
IF sy-subrc EQ 0.
v_year = rec_in-value.
ENDIF.
to return value, use the exact name on the second structure
CONCATENATE v_year v_year INTO v_year.
READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
IF sy-subrc EQ 0.
rec_out-value = v_year.
MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
ENDIF.
endform.
Hope this helps =) -
My Apple TV is not responding. Screen in black and light indicator blinking fast. Cannot make it work. What should I do?
Unplug it from power, wait 10-15 seconds and plug it back in.
If it does not power up properly at that point, restore it via iTunes on the computer. -
Suppress Target structure based on condition
Hi
How to suppress target structure based on condition
Example:
Source is like:
<Details>
<Name>abdc</Name>
<ID>234</ID>
<Address>US</Address>
</Details>
I have two target structures
1:
<Details>
<Name>abdc</Name>
<ID>234</ID>
<Address>US</Address>
</Details>
2:
<Error>
<ErrorID>
</Error>
if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
example
abc,123,US
abc
in above case second record has two null values
so my target structure should be
<Details>
<Name>abc</Name>
<ID>123</ID>
<Address>US</Address>
</Details>
<Error>
<ErrorID>2nd record has erro</ErrorID>
</Error>
How to acheive this..
Please help us
Regards
Sowmyahi ,
plz try the following mapping
Name-->exist-->if than else-> tuue----->Name
false---(constant)--
error
ID-->exist-->if than else-> tuue----->ID
false---(constant)--
error
adress-->exist-->if than else-> tuue----->address
false---(constant)--
error
regards,
navneet -
Spliting files based on condition using multi mapping with BPM
Hi All,
Can any one please let me know How to <b>Splite the outbound records based on condition using multi mapping with Integration Process in BPM</b>?
Thanks
Govindu.Hi All,
Sorry for mistake this question for Exchange infrastructure guys.
Thanks,
Govindu -
Executing OIM Process task based on Condition
Hi Experts ,
I have the following requirement :
when a OIM user field - X is updated with a value A i have to call task T1, generate a random number on this task and have to trigger CREATE user Task within in the same process definition of an IT resource
when the same OIM user field - X is updated with a value B i have to call task T1 again, generate a random number on this task and have to trigger DISABLE user Task.
Im taking the approach of OIM lookup triggers which will kickoff the task T1 when user field X is updated
My question is how can i add the conditional logic to a task(T1) to trigger the only one dependent task, either create user or disable user when a condition satisfies.
currently i have added create user task and disable task as the dependent tasks of the task T1.
If i am triggering create user task how can i get all the attribute mapping values of createuserAdp. since few are referring the process form, userdata and IT resource
Im confused and not sure as how to implement such Work flow based on conditions. hope some one can help me!!
Thanks in advance
Edited by: user8942439 on Aug 24, 2012 11:58 PMUse the responses returned by task T1. Lets say for create user, Task T1 returns a response "CREATE". So in the responses tab add this response, select it and in the tasks to generate section add "Create user" task to this response. In the same way task T1 returns response "DISABLE", so on DISABLE response select task to generate Disable user.
regards,
GP -
How can i render one facet in panel splitter based on conditions?
Jdeveloper Version - 11.1.1.5
How can i render one facet in panel splitter based on conditions?
Ex : In horizontal Panel splitter first facet - af table
second facet - af table
if any one table estimated row count is zero i nedd to render the respective facet?
is it possible?
Please help..
Thanks
skYes you can do it but not on facet you can apply rendered attribute to the any of the child component of the facet.
Thanks
Raghav -
How can hide the buttons based on condition
Dear all
I have to hide the button based on condition
When I open the third page directly I want to hide that button
When I open the third page via first and second page I need to visible that button
I pass spell parameter from first to second and second to third
In third page I get the value using pagecontext
I write the code in third page co
If I go directly third page it is null
If I go to third page via first the value is Y
If(“Y”.equals(pmode))
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(!btn=null)
btn.setrendered(true);
else
btn.setrendered(false);
but the button is not hiding
Regards
SreekanthHi Srikanth,
I have modified ur method:
OASubmitButtonBean btn =( OASubmitButtonBean )webBean.findChildRecursive(“<id>”);
If(btn !=null)
If(“Y”.equals(pmode))
btn.setrendered(true);
else
btn.setrendered(false);
Thanks,
'Kumar
Edited by: Kumar Kovela on Aug 3, 2009 5:53 AM
Maybe you are looking for
-
How do I insert a 'date created' field into a template?
I know that you can insert date & time fields into templates and make them auto-update whenever I open the document, but I am wondering if I can make the date field be set to the date when I created the document and then stay that date even if I reop
-
HT4623 How do you change the apple id on an IPAD if you want to gift it to someone else?
How do you change the apple id on an IPAD if you want to gift it to someone else?
-
Stamps not on printed document
When I print a document that has stamps on it (check mark, etc) the stamps do not show up.
-
Hi All, Below is the calculation script. //ESS_LOCALE English_UnitedStates.Latin1@Binary SET DATAEXPORTOPTIONS DataExportLevel "ALL"; Fix ( &CurrMiles, &CurrProj, &CurrVer,"No Project","No Version") DATAEXPORT "file" " " "D:\&CurrProj.txt"; ENDFIX I
-
Email analysis overview report questions
hi, please see the attached file. this is an email analysis overview report which shows strange results...: 1. how can the open rate be bigger than 100% ? - the eloqua report guide defines this metrics as # unique opens/# emails delivered, am i missi