Change of color of a button according to the data of a text element
Hi all
I have the 'detail' table, there for example (name, job, and notes).
I have a block in my form with these three columns as elements, but the first two columns is on the "main_canvas".
and the third is on another canvas.
-There is a button next to each name.
-When I click the button I should display the 'notes' on the other canvas element and view the data in this document, if there.
what I want is
If the button when I click on it it should display data in the element of "notes", the color of the button should be green.
If the button when I click on it it does not display the data in the element of "notes", the color of the button should be blue.
How to do?
Hello newbi_egy,
kindly, you can check the link below
change the background of the button
You can do this by making first button is emblematic and pay attention, you will miss your label
Check the value of the notes and once - new - Record-Instance Trigger
something like that
If: MyBlock.Notes is null then
set_item_property('AAA.) P', background_color, 'r200g00b0');
on the other
set_item_property('AAA.) P', background_color, 'r100g050b060');
end if;
Tags: Oracle Development
Similar Questions
-
Update the field Date according to the date of another field
Hi I have a field called "contract end Date" which I update manually according to the contract, and a field called "notify contract end Date" I want to be updated automatically with the "end of contract date" - 45 days.
Is this possible via workflow? can someone give me the syntax that works? If I want to manually insert the value of the field 'Date to end the contract to notify' it will overwrite it?
Thank you, DavidHello!
Create your workflow on your object type, select the before saving the trigger modification event, put the following condition:
[< contract end date >] <>MEADOW ("< the contract end date > '")
And in action, update the field End Date of the contract to notify with end Date of contract - 45 and check the replacement value. You contract end Date field must be with the type date.
I hope this will help, do not hesitate to ask for more!
Max
-
Change cell color in a table based on the input
Hi guys
Please refer to my example, I have attached. I had a 2d with som information table. 1 row = 1 component information and it's electric. This table is put in a table when you press "Update" in the front panel. My goal is that based on index 1 of table (col2 'Edge'), the color of the TableRow should change color. If the contents of the line is S20-1, the color should be red and so on. It works a little bit, but I'll have a few bugs:
-You must press "Reset" twice in order to remake the Whiteboard.
-The first colorchange also changes the color of the entire table. I want my whiteboard and lines to change color (header and TableRow unused must be white).
You can change the first element in the array constant of S20 - 1-S20 - 3 and you will see that my program brings to the whole blue table on the first colorchange.
Is this a mistake on my part? Or is this a bug in LV (which I doubt)?
Property nodes are running up and down, and you have the reverse order. You set the color first, and then the active cell, which means that the colour be trolling a run.
Your code is also too complicated. Here's a quick draft how this could be done. Let me know if you have any questions.
-
How to disable or enable the button according to the requirement
Hi all,
I get the new requirment finished the 50% task.now .i, I get mew problem.actully my requirmnet is already a custom form is there, placed the button to a custom form .click on this new form will be opened.
but this button will activate based on the condition.in my first my form (custom) paid if he calls rejected rejected value.this value displays some amount vallue.here rejected is zero (0) then button will be disbale, another rejected value great then zero(>0) then one button enabled.any you help me...
Kind regards
Stéphane.994418 wrote:
Hi hamid, this code works correctly, thank you
IF NVL(:REJEC_AMOUNT,0)<= 0="">=>
SET_ITEM_PROPERTY ('BUTTON_NAME', ENABLED, PROPERTY_FALSE);ON THE OTHER
SET_ITEM_PROPERTY ('BUTTON_NAME', ENABLED, PROPERTY_TRUE);
SET_ITEM_PROPERTY ('BUTTON_NAME', NAVIGABLE, PROPERTY_TRUE);
END IF;Kind regards
Hi stephane.
Other people may get help from your thread if you mark the correct answer and add [solved] in the subject line. Most likely, you did not read the following link.
Following these simple guidelines will ensure a positive experience in any forum; not just this one!
Hamid
If someone answer is useful or appropriate, please mark accordingly. *
I want my volume to change automatically when you watch movies according to the movie.
I watch movies on my laptop and when someone speaks soft or something hard I want my computer to turn up or down automatically how do I do this?
Hello
What application program do you use to watch movies?
If using Windows Media Player, I suggest you to see link and check. Which also applies to windows XP?
http://Windows.Microsoft.com/en-us/Windows-Vista/change-volume-settings-in-Windows-Media-Player
I m busy doing a site for a touroperater. I'm trying to figure out how to do an availability calendar. When you click a button, it will display a calendar where you can choose a date where you wish to arrive and when you leave. When you´ve does this, it will show you whether or not your choisen dates are available.
I hope I have made myself clear with this question.
Hello
Take a look at this topic, discussing the same stuff,
Appointments available for a site of Muse?
Please let us know if yous until cases of doubt.
Update the variable according to the data schema
Hello guys,.First post, pretty new at ODI and looked around for a while before posting.
We try to create a variable that is running a SQL command to return a value of a column in ORACLE table.
#VAR1 is select column_value < schemaname >. < tablename > where anothercolumn value = ";
We do not want to hard code our schemaname because it can change once go to QA.
Is there a way we can say #VAR1 = select column_value of '#VAR2 '. < tablename > where anothercolumn value = "
and
"VAR2 = < % = odiRef.getObjectName ('L', 'TABLENAME', 'LOGICALSCHEMANAME', 'DEV',"D") % > '.
Can someone provide suggestions or learning material?
Thanks in advance for your time.
Hello
It's just like you wrote.
Create a variable to the schema, fill first use it in a generic as query:
Select any_column in the #ODI_VAR_SCHEMA.table_name where any_filter = 1
Look at that you should leave the variable of "". ""
In addition, the selected logical schema must be bound to a physical schema which, too, must be bound to a data server with a user who has rights in all schemas that will be used in the query.
Works?
Cezar Santos
http://odiexperts.com
extract data according to the date and time
Hi all
create table orders
(number of order_id,
number of customer_no
ORDER_DATE date,
primary key constraint orders_pk (order_id))
Insert orders (order_id, order_date, customer_no)
Select 1,7508, to_date (September 15, 2013 22:09 ',' dd/mm/yyyy hh24 ') of double
Union
Select 2,7508, to_date (September 16, 2013 00:09 ',' dd/mm/yyyy hh24 ') of double
Union
Select 3,7508, to_date (September 16, 2013 11:09 ',' dd/mm/yyyy hh24 ') of double
Union
Select 4,7508, to_date (September 24, 2013 05:00 ',' dd/mm/yyyy hh24 ') of double
-need to recover all the commands which made between 15:00 and 08:00 the next day.
I want that my results will look like:
time of orders
time of orders | order_id | time | Hader 4 |
---|---|---|---|
September 15, 2013 15:00 ' - 16/09 / 2013 08:00 | 1 | 15/09/2013 22:09 '. | |
2 | September 16, 2013 00:09 | ||
23/09/2013 15:00-24/09/2013 08:00 | 4 | 23/09/2013-05:00 ". | |
Please your help.
Naama
My final request-
WITH t1 as
(
Select 1 order_id, 7508, to_date (September 15, 2013 22:09 ',' dd/mm/yyyy hh24 ') double dt
UNION all
Select 2,7508, to_date (September 16, 2013 00:09 ',' dd/mm/yyyy hh24 ') of double
UNION all
Select 3,7508, to_date (September 16, 2013 11:09 ',' dd/mm/yyyy hh24 ') of double
UNION all
Select 4,7508, to_date (September 24, 2013 05:00 ',' dd/mm/yyyy hh24 ') of double
)
SELECT
(CASE
WHEN To_Char (dt, 'hh24') > 12 THEN
(To_Char (Trunc (dt) + 15/24, "dd/mm/yyyy hh24")) | » -'|| (To_Char (trunc (dt + 1) + 8/24, ' dd/mm/yyyy hh24'))
WHEN To_Char (dt, 'hh24')<12>12>
(To_Char (trunc(dt-1) + 15 / 24, "dd/mm/yyyy hh24")) | » -'|| (To_Char (trunc (dt) + 8/24, ' dd/mm/yyyy hh24'))
END)
time_of_orders, order_id, To_Char (dt, ' dd/mm/yyyy hh24') order_time, header4 NULL
FROM t1
WHERE
DT > = (CASE WHEN To_Char (dt, 'hh24') > 12 THEN
Trunc (dt) + 15/24
WHEN To_Char (dt, 'hh24')<12>12>
Trunc(DT-1) + 15 / 24
end)
AND
DT<=>=>
BOX WHEN To_Char (dt, 'hh24') > 12 THEN
Trunc (DT + 1) + 8/24
WHEN To_Char (dt, 'hh24')<12>12>
Trunc (dt) + 8/24
(end);
It is tested... check my post below.
Show lines according to the date range
RATE EFF_FROM EFF_TILL SO_NO SO_DATE
24.5 03-07-2008 26-11-2010 001 20-03-2010
47 27-11-2010 31-03-2012 001 20-03-2010
The above is the result of a query. I want to display only the line where is located between EFF_FROM and the EFF_TILL SO_DATE.In above case 1st row lies between the range of dates, 07/03/2008 and 11/26/2010. Therefore, only the first line should appear.
Note: even if the the SO_DATE lies between 27/11/2010 and 31/03/2012, that the opener should appear.
Please suggest how can this be achieved?
Sanjay
Why not use this
select * from (
select 24.5 rate,'03-jul-2008' eff_from,'26-dec-2010' eff_till,001 so_no,'20-mar-2010' so_date from dual union all
select 47 rate,'27-nov-2010' eff_from,'31-mar-20102' eff_till,001 so_no,'20-mar-2010' so_date from dual)
where so_date between eff_from and eff_till
Iqbal
calculate data for the last 30 days according to the date of sys
SELECT DT, ITEMCODE, ITEMNAME, QTY
FROM TABLE1
In above given the query, how do I calculate the details of the amount of the last 30 days, APR, MAY, and JUNEAs the month during JULY, August, the amount of detail is required for the last 30 days (from sysdate), MAY, JUNE, July
Please suggest.
Yogesh
Published by: user12957777 on July 28, 2010 03:16
Hello
CASE expressions can filter data in specific columns:
SELECT SUM ( CASE
WHEN dt >= ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -3
)
AND dt < ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -2
)
THEN qty
END
) AS third_month
, SUM ( CASE
WHEN dt >= ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -2
)
AND dt < ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -1
)
THEN qty
END
) AS second_month
, SUM ( CASE
WHEN dt >= ADD_MONTHS ( TRUNC (SYSDATE, 'MONTH')
, -1
)
AND dt < TRUNC (SYSDATE, 'MONTH')
THEN qty
END
) AS last_month
, SUM ( CASE
WHEN dt >= TRUNC (SYSDATE) - 30
AND dt < TRUNC (SYSDATE)
THEN qty
END
) AS last_30_days
FROM table1
;
You can do this with GROUP BY, in addition, if you want to separate for each itemname (for example) lines.
I guess some things, like what do you mean by the last 30 days.
If you wish to post a few 9creation TABLE or INSERT sample data) and the results you want from this data, then I could test this.
change the color of the text element
HelloI have 3 elements of text in the form of my text, I want when the cursor in a text element will change the color of the item.
Note:
I have already created a Visual attribute.
979155 wrote:
Hello
Thanks for the reply
I also want to when the cursor leaves an article color text back 'white '.
Yes... my example do it for you... Check the code.
Hope this helps
Hamid
Mark correct/good to help others to get the right answers. *
change the date on the imported photos
I added & appoint my 175 GB of photos by digital date. My catalogue includes a good number of photos scanned from the "old days". To save space HARD drive on my iMac, I import photos photos as referenced photos, but they import according to the date of the analysis of the name I had given him and not and when I look at my Photos, analyzed those peaks are scattered everywhere. I plan to remove all the photos in my pictures and then re-import them. Is it possible to set the time of creation of an entire folder to reflect when they were actually taken vs when they have been digitized?
I plan to remove all the photos in my pictures and then re-import them. Is it possible to set the time of creation of an entire folder to reflect when they were actually taken vs when they have been digitized?
You can select several photos in pictures for Mac at a time. Then use "Set Date and Time" in the picture menu.
This setting of the selected photos capture date and time by the same fixed increment change.
It works well, if the selected photos have been scanned roughly at the same time. So, choose photos that were analyzed at the same time to adjust.
If you have a photo album with a variety of scanning of the dates, but want to put all the photos on the same fixed date, use an Apple script. I posted a script in the section user Tip (Photos for Mac) that I use for my scans, see: batch Change Date and time on a fixed Date
How to recover the date in a specific format on button clicked?
I'm trying to update the date in a data template on a user clicks the button, but unfortunately the Date() function gives just a format long unncesseray. I want just the day/month/year (i.e. 10/09/2013). How to change the Date() function to achieve this?
Button { leftPadding: 30 rightPadding: 30 preferredWidth: 150 horizontalAlignment: HorizontalAlignment.Center imageSource: "asset:///images/ic_add.png" onClicked: { rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, ListItemData.name, ListItemData.description, Date(), parseInt(ListItemData.lat) + 1, ListItemData.lon, ListItemData.categorySelect, ListItemData.mapurl) } }
Thanks in advance. Solutions and love will see for those who help.
Kind regards
Brandon
I was actually able to find a workaround simpler. I just used objects attached within the key and attached to a date function:
Button { imageSource: "asset:///images/ic_add.png" onClicked: { rootItem.ListItem.view.getApp().updateObject(ListItemData.customerID, ListItemData.name, ListItemData.description, datefield3.text, parseInt(ListItemData.lat) + 1, ListItemData.lon, ListItemData.categorySelect, ListItemData.mapurl) } attachedObjects: [ Label { id: datefield3 text: { var today = new Date(); (today.getMonth() + 1) + "/" + today.getDate() + "/" + (today.getFullYear() - 2000); } } ] }
Why Lightroom changes the date and some of my images on their import
Why Lightroom changes the date and some of my images on their import
The problem is that when I try to put photos in subfolders (depending on date) Lightroom some if put in the incorrect date - 10 hours AHEAD of the actual time that the photos were taken (according to the data from the camera).
This is a bug for a long time in LR: Lightroom: import: folder names arrange by date around midnight of evil when using USB camera
You use a USB cable to connect to your camera? Try to take the memory card from the camera, put it into your computer's card reader and import from there. It solves the problem for most people.
I tried to move photos into their correct date subfolder, but then of course Lightroom cannot find more!
Move photos within LR, instead of in the Mac Finder / Windows File Explorer.
Hide button in the data model of bi publisher 11.1.1.6.4 apply
Hi allAccording to the oracle documentation, we can hide the button apply in the data model in OBIEE 11.1.1.6... Version. However, I checked the version 11.1.1.6.0,11.1.1.6.4 there is no feature in the data model to hide the button apply as shown in the figure below. Is available in 11.1.1.7.0 latest version only?
http://Tinypic.com/r/bg9yf/5
Thank you
Sushil
I think that is in with settings in the "Apply" button. You do not have the ablility to show the button apply or not. You can set it in the display options settings page-> show the button apply.
I work with the version of Oracle Business Intelligence 11.1.1.6.7 and I am able to set this property.
Thank you
Bipuser
Maybe you are looking for
-
Cannot install win10 using iso file training camp
I'm on OSX EL Capitan, fully updated. Boot camp is not allowing me to use the ISO file to install windows iso 10 file. It keeps prompting 'NO USB key. There is no usb drive connected to the system. Please insert a USB key to continue. " He does not a
-
Update iOS 9.3.4
The new update iOS 9.3.4 will reset my iPad? (Applications, photos, ect.) If there is anyway I can record my things and still get the update?
-
I am no longer able to see my "write a message" or the box that allows me to organize my emails... I don't have the ability to mark a message with the custom category.only half the screen is E-mail info... the bottom half is empty unless I click on a
-
Satellite L50 - B - 1 K 1 - touchpad Linux mint
I have a Toshiba satellite L50 B 1 k 1, after I installed Linux mint and I can't do the touchpad works, I need to use an external mouseΙ tried to press FN + f5 key in order to activate the touchpad, but unfortunately it is combination drives to the D
-
I use a timer/counter with DAQmx 6602. I use the separation of two - available via DAQmx cash edge. Count between the two edges works properly, however I do not know how to read the value of the counter during the counting operation (i.e. after the f