Changing colors of individual records in multi-record block

Can any point me to where I should place the code to programmatically change the color of a record in a multi-record block based on a particular column value?
For instance, if block.col1='OPEN', I'd like the entire row to display as BLUE. If block.col1='CLOSED', I'd like the entire row to display as RED. I've tried placing my code at the block POST_QUERY level and WHEN_NEW_RECORD instance level without success.
I'm a relative forms newbie, so any advice would be appreciated.

I tried putting it in the 'when new record instance' trigger but it did not work completely. I put them same code in the Post_Query trigger of the multiple record block along with the 'When new record instance' trigger and it worked perfectly.
I'm not forms expert, and there's probably a reason why I needed to put it in two places to make it work for me but that's a question of a forms expert.
Ron

Similar Messages

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • How to re-query changed record in multi-row block after update in a called form

    Hi,
    I have a form that I use to perform searches, which is a multi-record block.
    The user can navigate to a record, press a button on call another form which provides
    more detail, and allows update of the record.
    If the user changes it, and returns to the original search form, how can I re-query the
    changed record to update the fields on the search form.
    Is there a way other than to re-query the
    whole block - a built-in to just update on record if it's changed on the database.
    If not, can I use globals to pass back the data (since only a few fields are updatable),
    and change the record without effecting its forms status.
    Many thanks
    Bernie

    BD,
    I haven't managed to look at a solution yet, but the block is a large multi-row block,
    with an ORDER BY, and since it can return a large number of records, there is a short
    delay. I was hoping there was a way of just
    re-querying the one record, which was displayed
    in the second form for update.
    I'll give the query a go, or might try and pass back some globals with the update values.
    By the way, DML Return Value is an excellent feature, but only works against Oracle 8.
    It basiclly adds the RETURNING clause to any DML statement (see SQL manual), so that if
    a trigger changes/adds values you didn't provide, it will return them back to you
    so the values in your form are correct.
    I use a trigger on the DB to populate history fields (create/update,who/when) and
    the PK sequence. Using this feature, those values are returned to the block and displayed.
    Regards
    Bernie

  • Saving the record in multi-record block while updating

    Hi gurus
    I have a table name PT . Its is master table where PT_TYPE IS unique
    desc PT
    PT_TYPE VARCHAR2(2) unique,
    PT_CODE VARCHAR2(4),This is the detail table on which the form is being designed is meant for insert/update/delete.Insert and delete are working fine.
    desc PST
    PST_PT_type varchar2(2) unique,
    PST_A_code Varchar2(3) unique,
    PST_A_desc varchar2(10) The form layout is a multi-record form as below and based on PST table with PT_CODE as non-base table item & PST_PT_TYPE
    not displayed but its there in the block.
    FORM_LAYOUT
    PT_CODE PST_A_CODE PST_A_DESC
    ASD          AS          TESTAS
    ASD          AD TESTAD
    ASD DS TESTDS.
    Now the problem is when I am querying record through enter-query mode (say by entering PT_CODE 'ASD') and
    change one of the base table items(PST_A_CODE or PST_A_DESC) values and commit it. its says '1 records applied and save'
    but when I change ONE OF THE PT_CODE(non-base table item) values it says 3 records applied and saved. as the 3 records
    are currently displayed when querying

    Hi Craig,
    Both below program unit is in the WHEN-VALIDATE-ITEM of NBT item PT_CODE
    --this is to check that valid pt_code is entered
    PROCEDURE val_pt_code IS
         cursor val_cur is
         select pt_code
         from pt
         where pt_code =:pst.pt_code;
    v_dummy varchar2(12);
    BEGIN
    open val_cur;
    fetch val_cur into v_dummy;
    if val_cur%notfound then
    close val_cur;     
         warn_alert('Error:The Product Code entered does not exists');
         raise form_trigger_failure;
    end if;
    close val_cur;
    END;
    --this is to check that particular pt_type value is for the pt_code is selected
    PROCEDURE get_pt_type IS
         v_pt_type varchar2(2);
    begin
         select pt_type into v_pt_type
         from      pt
         where pt_code = :pst.pt_code;
         :pst.pt_type := v_pt_type;
    exception
         when no_data_found then
              warn_alert('Error:The Syllabus Type does not exists');
         raise form_trigger_failure;
    end;
    --

  • Problem in displaying records in multi record block

    Hi all,
    I have a problem in displaying records in a multi record block in a form.
    I have 1 control block and 1 data block(multi-record block).
    Control block has one item CUSTOMER-ID. Data block has many other items related to customer.
    when a value is entered in customer-id text item, all the relavant details should be displayed in the data block.
    but, the records are overlapping in the same line in the data block, actually they have to be displayed one record per one line.
    The code is,
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    END LOOP;
    Please help me out..
    Thanks in advance!
    Suman

    Hi Suman
    IF :CUST_BLOCK.CUST_ID IS NOT NULL THEN
    GO_BLOCK('XBSI_CONTRACT_PRICE_FACTORS');
    first_record;
    FOR C1 IN C
    LOOP
    :XBSI_CONTRACT_PRICE_FACTORS.CUST_ID:=c1.site_use_id;
    :XBSI_CONTRACT_PRICE_FACTORS.CAT_ID:=c1.ipc_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.MFG_ID:=c1.mfg_category_id;
    :XBSI_CONTRACT_PRICE_FACTORS.INVENTORY_ITEM_ID:=c1.inventory_item_id;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_BASIS:=c1.price_basis;
    :XBSI_CONTRACT_PRICE_FACTORS.PRICE_FACTOR:=c1.price_factor;
    next_record;
    END LOOP;
    Try this. you are trying to show all the records in same line. so its overlapping.
    Thankyou
    [email protected]

  • Set "current" or "active" record in multi-record Report or Form

    Im trying to use HTML DB for the following:
    Display a multi-record Report (or Form);
    Mark one of the displayed records as "active" or "current", saving its PK/UK or rowid into a variable/field;
    After that, select a function/process to be performed on or on the basis of this "active" record.
    This is very similar to what is possible in 10g Grid Control, when, for example, you dislay (Administration/Tables) a list of tables (in a schema),
    "select" one of the displayed tables, and then request, for example, to view the data in that table.
    The question is, how do I define/attach the "Select" field (single-valued radio) to each of the displayed record in my multi-record Report or Form ??

    Im trying to use HTML DB for the following:
    Display a multi-record Report (or Form);
    Mark one of the displayed records as "active" or "current", saving its PK/UK or rowid into a variable/field;
    After that, select a function/process to be performed on or on the basis of this "active" record.
    This is very similar to what is possible in 10g Grid Control, when, for example, you dislay (Administration/Tables) a list of tables (in a schema),
    "select" one of the displayed tables, and then request, for example, to view the data in that table.
    The question is, how do I define/attach the "Select" field (single-valued radio) to each of the displayed record in my multi-record Report or Form ??

  • Changing colors of individual bars in a XY Graph

    I am using an XY Graph (bar style) to display 50 voltages. I have limit settings (low alarm,low warning, high warning, high alarm)that I would like to impose on each of the 50 bars in the XY graph. My problem is that any way I try it the limits are only imposed on the first bar on the graph and all the following bars change colors along with the first bar no matter what value they have. Is it possible to control the properties of individual bars inside an XY Graph ??

    > I am using an XY Graph (bar style) to display 50 voltages. I have
    > limit settings (low alarm,low warning, high warning, high alarm)that I
    > would like to impose on each of the 50 bars in the XY graph. My
    > problem is that any way I try it the limits are only imposed on the
    > first bar on the graph and all the following bars change colors along
    > with the first bar no matter what value they have. Is it possible to
    > control the properties of individual bars inside an XY Graph ??
    >
    The short answer is no. All of the elements in a plot use the same
    colors to draw. To get the display you want, you need four plots.
    Write a subVI that takes in your array and returns the four that you
    need. It will index the elements and generates a value in four othe
    r
    arrays such that three of them are NaN and the fourth contains your
    value depending on the alarm status keeping the same X value with all
    four plots. As an example, if the value is lower than the low alarm
    limit, the value will be placed in the low array and NaNs in the other
    three arrays.
    Now wire the four arrays to the graph as a multiplot, you will either
    use a build array or a Build Clustered array depending on the XY type.
    The plots will overlay, with only one point being non-NaN for each X
    location. It will use the color for plot 0, 1, 2, or 3 depending on
    which array the value was in.
    Greg McKaskle

  • Change colors of individual pixels on intensity graph?

    I would like to be able to change the color of a set of individual pixels within an intensity graph, to blue for example, while leaving the color table otherwise as is, for example, gray scale.  The change to blue would be based on location, not on current gray value.  I think I can accomplish this using the mask fx with picture controls, and then convert to intensity graph.  Is there a more direct way?  A good example to demonstrate this capability would be just using a 'mouse down' event on an intensity graph to change the color at the mouse location.  Any thoughts are appreciated.
    Sincerely,
    Don

    Yes, seems to work fine .
    If you have LabVIEW 8.0, there is another possibility. There is a new property that allows drawing any pictures or picture elements on your graph area. Of course you could draw individual pixels, but nothing prevents you from e.g. drawing circles, squares, odd shaped areas, arrows or event text. ... Anything you could do with a plain picture indicator. One example that ships with LabVIEW 8.0 is Envelope.vi, see image.
    Message Edited by altenbach on 06-12-2006 07:31 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    envelope.png ‏32 KB

  • Updating a value of a text item in a multi record block based on a change

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

    Hi,
    I need to change the value of a text item in a multi record block based on a change to another item's value in the same block.
    Suppose there's a text item in a multi record block called dt1 which is of type date, which is changed in a particular record. I want to change the values of the another item in the same multi record block, for all other records by running a loop through all the records in multi record block. I dont want to do it on the press of a button, it should do automatically on change. Help me resolve this issue.

  • Query about multi record block

    Abdetu
    Please clarify this
    I have a multi record group on the canvas, which displays 5 records at a time. The block is based on a table. All the items, except 3 items are displayed items.Now in the block I have a list item, in which I have two values "PO" and "TSF".. If user selects PO, associated text items will get enabled and user will be entering the values .. Same is the case with TSF .. And at the end user selects Ok button to save the record to the database
    Now while fetching the records (based on query) ..once the records are fetched, control will be on PO/TSF list box, now the user can either change PO to TSF or TSF to PO ..or he/she may opt not to change also.. If user changes PO to TSF, only that particular record's TSF fields should get enabled .. The problem what I am facing is, when the control comes to PO/TSF list box.. since its multi record block, all the record's PO/TSF list box are getting enabled
    In the sense, if control is in the 1st record of multi record block, only those fields should get enabled, once the user navigates to the text item which is the last of that particular record, then 2nd record should get enabled....
    Can I know the solution
    Regards
    Message was edited by:
    Seshu
    Message was edited by:
    Seshu

    Hello Seshu
    ur case explanation should be in points 1,2,etc as possible leaving extra lines and spaces in between .. and the case should be more clear and summarized like:
    1- I have multi-records data block.
    2- I have a static list item with 2 values eg. (a and b).
    3- Depending on selecting from the list some items r enabled.etc.
    Kindly note that, this will facilitate ur problem to be more readable,recognizable and save time and effort of someone who wants to help u.
    Here comes the confusion:
    Now while fetching the records (based on query)
    The problem what I am facing is, when the control comes to PO/TSF list box.. >since its multi record block, all the record's PO/TSF list box are getting enabled i think with the piece of code i have just posted to u this can't be happened since it disable all the record's PO/TSF.
    if this didn't solve ur problem i suggest either u post ur code to help u or u try to put some validations with :
    if statment inside the loop depending on the list item's values which will enable or disable related items to the list.
    Hope this help u,
    If any Questions pls let me know..
    Regards,
    Abdetu..

  • How to change colors for record working time calendar

    Hi,
    I would like to change the colors in the calendar displayed in record working time based on some conditions.
    How do i do that is there any BADI associated with that
    Thanks
    Bala Duvvuri

    Hi Bala ,
    Yes its possible to change that .
    You need to implement BADI for this ..
    BADI name : "PT_ABS_REQ"
    In the BADI "PT_ABS_REQ"   interface "IF_EX_PT_ABS_REQ" you can find the method
    "SET_CALENDAR_COLOR" in that you can set the colure for the Absent type ......
    Adjust Colors of Calendar and Team Calendar
    Functionality
    You can use this method to change the colors in the team calendar.
    In the standard system, the different statuses for requests have different colors. You can use this method to differentiate the colors of requests depending on the following aspects:
    Status of requests (status)
    Action that an employee has executed: new request, delete, change (UIA operation)
    Subtype of absence (SUBTY)
    Full-day or partial-day absence (BEGMT, where BEGMT = 0 signifies a full-day absence)
    Application mode ( mode). You specify the application mode in the Select Employees for the Team Calendar IMG activity.
    Color Display of Status of Leave Requests(COLORS_ACTIVE). You specify this status in the Specify How Leave Is Displayed and Default Values IMG activity.
    Available Colors
    You have a choice of 16 colors. The 16 colors are hard coded, that is, you cannot change them or add other ones.
    The available colors are stored with their RGB value as constants of the CL_PT_REQ_CONST class. Use these constants if you want to change the colors.
    Notes
    If you change the colors in the team calendar, you should also adapt the legend accordingly. You can use the Adjust Legend for Calendar and Team Calendar method to do so.
    Hope this work!!!

  • When using quicktime screen recorder, the recording changes colors

    Please help me out!! So I've had my macbook air for a while now and I've used the quicktime screen recorder multipul times, but latley something changed. When I go to record my screen everything works fine, and once its finished and I've saved it it's still normal. But once I go to import it into imovie the entire recording turns red, I can still see the recording but everything is just red! Everywhere else the recording looks fine, but its only when I try to put it into imovie that it changes colors. Its never done this before and all of my past screen recordings work fine.
    Does anyone know what I can do to fix it?
    Any advice would be greatly appreciated!
    Thank you

    Hello meaganmarie,
    I am assuming you have quicktime up to date (10.3)
    When recording a game window,
    - select quicktime
    - go to file > New Movie Recording
    - select your game window like a rectangular marquee selection (drag and make a rectangle filling only your game window
    - stop when done and save
    This way the endtire screen (including youe desktop) won't be seen, just your selected game window.
    Regards,
    Asevenc

  • Setting background color in multi record block

    Hi all!
    I've a table with around 150 records of colors with html-color-names and rgb codes.
    I would like to have a sample item in my form 9.0.4 to display the color as a preview for
    each record in a multi-record block when querying the table.
    I would not like to create a visual attribute for each color. So display_item() is no choice.
    (except: somebody show me how to create va's with the japi)
    Somebody knows a way to accomplish this?
    Thanks in advance and regards
    Stauder

    Here's a solution which should work :
    1. Use a mirror item for the numeric item which has to
    be displayed
    using the format mask based on value in column1
    The data type of the mirror item : Char
    X and Y co-ordinates : Same as the item
    on which it is
    mirrored
    Size and Height : Same as the item
    on which it is
    mirrored
    2. On normal display, Mirror item is displayed
    3. When Mouse-Click or Pre-Text Item trigger on the
    Mirror Item :
    - Use the Go_Item ('Actual Numeric Item');
    This will bring up the Numeric Item and the Mirror
    item goes in hiding
    - A VWI trigger on Numeric Item should Then be :
    If ( :col1 = 'A' ) Then
    :Mirror_Item :=
    To_char(:NumericItem, ',999,999.99');
    Else
    :Mirror_Item :=
    To_char(:NumericItem, '99999999');
    End If;
    4. A key-Next-Item (On Numeric Item) or other trigger ??
    should then
    use Go_Item (:Mirror Item) to bring forward the
    formatted numeric item
    -- Shailender Mehta --

  • NiScope EX Multi Record vi program

    Hi,
    I have a question in niScope EX Multi Record.vi program. I was not explaining it well in my previous mail. That is why people can not answer my question. This time, I will explain clear.
    Attached "abc" is my prgram with niScope EX Multi Record.vi prgram.  This is my question. How come I can not get the waveform when I do the same action in the seond time? Here is how my prgram work. First, I press "reset"  push button, the light will go off and press it again the light turn off. The prgram do nothing, just reset the value of the voltmeter and current meter. Second, I press the "enable" button, the voltmeter and current meter get reading since I have a subprgram under timeout in the event structure. Then, I press the "enable button" again to turn on the light. Third, I press the "bark button", my hardware will be shocked and output waveform, since I have a subprogram, niScope EX Multi Record.vi, I set the right parameter, I will get the "shock pulse waveform".
    Everything looks good and working. Then I press the "bark" push button again to turn the light off. I want to do the same action the second time to see if the waveform of niScope EX Multi Record will generate again because normally I tried the same action the second time. the waveform will generate again. Here I am talking about I use the niScope EX Multi Record.vi prgram without anything and event structure and I did the same action as what I said in the above procedure. But, I did the same action in the second time in this "abc" vi program with niScope EX Multi Record. vi prgram, I could not get a new waveform, I don't understand why? could you please tell me what I did wrong? my niscope EX Multi Record.vi prgram is out of the event structure, what I see is like this prgram is alone just like the one I tried without event structure before. I am not sure if this single prgram mixed with event structure, it will be what? will it be different like I put two subprgrams in one block diagram even though I tried two subprgram put it together and it will work what it suppose to do. I am not very sure if ni scope EX Multi Record.vi prgram mixed with other prgrams with event struturem, what will happen? Will it be the same like two subprgram put it together? Could you please tell me exactly what if I put niScope EX multi record.vi with event structure including another program, what will happen? I would like to understand.
    Attachments:
    abc.vi ‏227 KB

    Hi Nyborn,
    The changes of the graph color are controlled by the Waveform Graph property node on your block diagram. In the niScope EX Multi Record.vi  example the Plot.Fill/PtColor value of the waveform graph property node is connected to a random generating number which changes the color on every execution. If you want to assign just one color, remove the random number vi and just wire a acii constant for the color you'd like. You can find listing of all acii color codes here.
    I hope this helps.
    Regards,
    Natasa

  • NiScope EX Multi Record

    Hi:
    I have a question on niScope EX Multi Record. I tried to put 10ohm in the BNC cable. See my attached graph. Then, I press the "Bark" button on my test fixture. It will generate the waveform using the niScopeEX Multi Record vi. But, if I use 100ohm in R1 or 18kohm in R1, The program will not generate the waveform after pressing the "bark" button. But, if i press the "test" button on the fixture, no matter I use 10ohm, 100ohm or 18kohm, the niScope EX Multi Record vi will generate the waveform. What wrong with it? Is there anything wrong in the  niScopeEX Multi Record vi or is there anything that I can set in this program to solve this problem.
    I am also attached the fixture block so that you can see the bark and test push button.
    I am in a very urgent. I need your quick reponse. I appreicate your help
    Attachments:
    NI Scope.doc ‏430 KB
    Current%20Measurement.PNG ‏7 KB
    Block diagram of the fixture.pdf ‏43 KB

    Hi Nyborn,
    The changes of the graph color are controlled by the Waveform Graph property node on your block diagram. In the niScope EX Multi Record.vi  example the Plot.Fill/PtColor value of the waveform graph property node is connected to a random generating number which changes the color on every execution. If you want to assign just one color, remove the random number vi and just wire a acii constant for the color you'd like. You can find listing of all acii color codes here.
    I hope this helps.
    Regards,
    Natasa

Maybe you are looking for

  • Sudden problem between iMovie and my Graphics Card?

    Hello all- Please forgive any omissions, first time posting. I'm running Tiger 10.4.9 on a G4 iMac Desktop, 800 MHz w 768 MBram. My graphics info is apparently: NVIDIA GeForce2 MX: I only recently had iMovie HD 6.0.3 start displaying an alert message

  • Alv report development.

    Hi,     In fi module i am getting open items details with existing Zreport . now in that i need to get cleared items details also when user select that cleared item radio button.

  • Re: UnsatisfiedLInkError: No muxer in java.library.path

    In the default weblogic.properties file, this should be the first property listed under the System Properties section: # SYSTEM PROPERTIES # System properties in this section are set to system defaults # Performance pack. The shared library must be a

  • Calling a report from appserver

    Hi all, I read in doc that we can display a query by http://yourAppServer:yourPort/SAP/BW/BEx?CMD=LDOC&TEMPLATE_ID=yourTemplate&STATELESS=X how can I find what my appserver address and port are? please let me know thanks Sabrina.

  • TS3899 Google will not load & email + gmail is a blank screen

    I bought a secondhand iPhone 3GS & cannot load safari + email & gmail is just a blank screen,l have also tried reset my device & my phone seems to be stuck in loading mode.