Alternate color pattern

Hi,
We are currently using oracle forms 6i client/server.
I have a form with 20 records on it. We would like the record color background to alternate between white and gray.
In other words... record 1 will be white, record 2 will be grey, record 3 will be white again, record 4 will be grey again...and so in.
In APEX this can easily be done but is there anyway in oracle forms 6i to do this?. I tried visual attributes but did not have much luck.
Thanks
Munish

Hello,
You can try one thing.
Create two VISUAL ATTRIBUTE one for GRAY and one for WHITE let say VA_GRAY and VA_WHITE.
Now in that block create one trigger POST-QUERY block-level and set item instance property for all the items which are being displayed on the canvas. like...
Trigger = POST-QUERY (Block-Level)
IF MOD(:SYSTEM.TRIGGER_RECORD,2)=1 THEN
  SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VA_WHITE');
-- Include all the items which are on the canvas for the detail block as above
ELSE
  SET_ITEM_INSTANCE_PROPERTY('BLOCK_NAME.ITEM_NAME',CURRENT_RECORD,VISUAL_ATTRIBUTE,'VA_GRAY');
-- Include all the items which are on the canvas for the detail block as above
END IF;And if there is insertion also in the same block then use the same code also in WHEN-CREATE-RECORD trigger on block-level.
-Ammad

Similar Messages

  • Using PHP to generate images in alternate colors

    I have a PNG image of a black silhouette graphic with
    softened edges against a transparent background.
    Can I use PHP to generate this image in alternate colors
    (allowing the black graphic to be displayed in a color other than
    black)?

    AngryCloud posted in macromedia.dreamweaver:
    > I have a PNG image of a black silhouette graphic with
    softened
    > edges against a transparent background.
    >
    > Can I use PHP to generate this image in alternate colors
    > (allowing the black graphic to be displayed in a color
    other than
    > black)?
    I have no experience with this, but I was just poking around
    in the GD
    references and found a comment on imagefill() that might
    help:
    http://us.php.net/manual/en/function.imagefill.php
    Comment:
    http://us.php.net/manual/en/function.imagefill.php#81873
    Or you may need to work with some of the other alpha
    functions.
    Mark A. Boyd
    Keep-On-Learnin' :)

  • Display alternate color in rows  : : : record numbers are not in sequence to display alternate color.

    Post Author: SRK
    CA Forum: General
    Hi ,
      I am using  the following formula to display the alternate white and silver  background color in every reocrd but this does not work because the records numbers are not in sequence  for ex : its showing 54,56,58 which is not allowing the alternate color, Any advice.Thanks if   remainder(recordnumber,2) =0 then    crNoColorelse    Color (218,218,218); 

    Post Author: keiffer6
    CA Forum: General
    Could you simply add a running total for each record. That will give you the 1 2 3 4 5 6 ....
    Then in the details section color formula, use something like this:
    if RunningTotal Mod 2 = 0 then crSilver Else crNoColor.
    HTH

  • Alternate color to the rows with sorting

    I have a table which has alternate color to the rows.one row in white and other in blue.when sorting is used, the blue-highlighted lines on the table are randomely re-located. They should not be impacted by the sorting.But they are getting effected.Is it possible to give alternate color to the rows with sorting?if yes,how.

    Go to Service.sap.com and follow the path > Problem Solving > Create Customer Messages. Choose a System and write a Message.
    raising an OSS message

  • In ALV, how do u get alternate colors in output

    In ALV, how do u get alternate colors in output

    For a non OO ALV...
    TYPE-POOLS:  slis.
    DATA:   xfield    TYPE slis_t_fieldcat_alv,
    gs_layout TYPE slis_layout_alv.
    In your data structure you have tu put a field for the color, example:
    DATA: BEGIN OF xdata OCCURS 1.
    DATA:   ebeln          LIKE ekko-ebeln,
            name1          LIKE lfa1-name1,
            txz01          LIKE ekpo-txz01,
            color_line(4)  TYPE c,           " <==== this is the color line
    END OF xdata.
    You have create a form for the layout like this:
    FORM init_layout.
      gs_layout-info_fieldname = 'COLOR_LINE'. "<==the name of de field of the structure
    ENDFORM.
    Perform the init_layout in the initialization.
    Your call alv function, have to be like this:
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_buffer_active         = 'X'
          i_callback_program      = 'YOUR_PROGRAM'
          i_callback_user_command = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = xfield[]
        TABLES
          t_outtab                 = xdata
        EXCEPTIONS
          program_error           = 1
          OTHERS                  = 2.

  • Alternate color in Row footer

    alternate color not applied in Table footer.
    Can any one let me know how to acheive this?

    Hi,
    You can use a normal alerter for this.
    A manual alerter can use a formula like Even(LineNumber()) to give a shading or not...
    Then again, don't you want the footers to stand out from the body of the table?
    Hope this helps,
    Marianne

  • Color pattern match in consumer producer architecture

    The way I currently have my code is as follows:
    If the number of matches in a color pattern match is greater than 0, it sends the information to the consumer loop.
    If it is not greater than 0, it doesn't send anything.
    What I was wondering is, if it finds a match the first time and it sends the information to the consumer loop, will the number of matches in the color pattern match return to 0 or will it be greater than 0 after the first match? If the number of matches in the color pattern match will be greater than 0 after the first match, and it will still be greater than 0, even though it doesn't find a match in the following scenarios, how can I make the number of matches in the color pattern match return to 0?

    Fernan1988 wrote:
    ... will the number of matches in the color pattern match return to 0 or will it be greater than 0 after the first match?...
    it's hard to say unless you can post your code....have you tried probing tool,retain wire value,highlight execution,single stepping into and out, breakpoints?

  • Alternate Color Space

    We are running Creative Suite 6 on our macs here.  When you create a new spot color from the library the alternate color space is in LAB.  We work at a printing company and this doesn't do us very much good.  Is it possible to change this to be CMYK?
    Thanks for your help!

    This forum doesn't get all that much traffic. If you have applications specific questions ask in those forums.
    The answer may be different for the two apps.
    Bob

  • Color pattern matching is very slow

    Hi
    I tried this code creating one vi application.
    After the testing with USB webcam I have realized that the color pattern matching is very slow. How to increase the speed and to work smoothly in real time.
    Thank you

    Hello tiho,
    the color pattern matching is not as fast as 8-bit matching, but should still be fast.
    For example, I am attaching a VI for color pattern matching where you load the image, create the template and search do the matching.
    In my example I tried color pattern matching on color image of size 4288x2848 pixels and the matching is performed in ~140 ms (~7Hz). So, for a smaller image, I think the real-time processing is quite achievable (I consider real-time 20 Hz or more). The only problem is the template learning, which in my case takes around 10 seconds. But you should learn the template only once in the initialization stage.
    Best regards,
    K
    https://decibel.ni.com/content/blogs/kl3m3n
    "Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
    Attachments:
    color matching.zip ‏49 KB

  • Color Pattern?

    In Diagnostic mode, I can see under LCD an option to change the color pattern, but I can't seem to. How do I do this?

    There is no way to change the color pattern. What you are seeing is simply a line of code from Apple. Perhaps they were testing a few different color patterns during development.

  • Color Pattern Calibration

    Does FIOS or a channel on FIOS provide a color pattern to calibrate the video on one's TV and Projector?  Thanks.

    william1 wrote:
    Does FIOS or a channel on FIOS provide a color pattern to calibrate the video on one's TV and Projector?  Thanks.
    No. You'll have to use calibration discs such as Disney WOW, DVE, Spears and Munsil, etc.

  • Alternate color in group footer

    Hi
    i am using following formula to apply alternate color in detail section, section expert, color, background color-
    if Remainder(recordnumber,2)=0 then RGB(223,223,223) else RGB(255,252,255)
    but if i apply same formula to group footer section it's not working.
    how to apply alternate color in records of group footer section?
    Please give me solution.
    Thank you

    Hi,
    Add
    while printing records;
    Above the  formula and try to run it.
    Regards,
    Neo.

  • Alternate color of tabular forms table

    hi all,
    how can i get alternate color of tabular form records, is there any possibility if oracle forms of this??
    Thanx
    Hina

    Hello,
    <p>You can use a Visual Attribute in conjunction with the Set_Item_Instance_Property() built-in. Change the color of the record's item when the record number is even. Get the record number with Get_Block_Property( :system.cursor_block, CURRENT_RECORD).<br>In this article you will se how to colorize a whole record.</p>
    Francois

  • Spot colors Black, All have the same alternate color values

    If printer’s mark [Crop, Registration, Page] is enable in the InDesign preset options, we are getting “Spot colors Black, All have the same alternate color values” error in the PITSTOP log report.

    Rob, here's screenshot of Acrobats Output Preview Object Inspector. You can download my PDF here - //www.fileswap.com/dl/Q1CzzOzEqt/
    I'm not sure if CM was assigned to document when created or  afterwards. In Color Settings preferences is stated Fogra 39 (if it matters - document was meanwhile saved and opened...). Are there other options to assign workspace to exsisting document?
    Peter, this is not the case. Placed image has embeded same color profile as is working space of document in ID. I tried the same with sRGB image placed in same ID document and compared it to PS but color shift (greenish) is present - it looks exactly the same.
    Guys, I can't tell you how happy I am to have you help me with this terrible and nerve-wracking problem.

  • Error -1074395395 occurred at IMAQ Match Color Pattern after merge programs

    Dear all
    I  have 2 separate programs that use same source image (red01a1.jpg). The first find location of color particles (color location 01.vi) and second find location of particles after threshold  color image (particle location 01.vi).  Both of them run good.  
    But when  2 programs were merged  into one program (color sorter 01i.vi), that happened error . The error message is “Error -1074395395 occurred at IMAQ Match Color Pattern”. How can I fix it ?
    Thanks  
    Solved!
    Go to Solution.
    Attachments:
    color sorter 01i.vi ‏126 KB
    Color -particle location.zip ‏86 KB
    red01a1.zip ‏86 KB

    Hi Xuan
    Check it out the attached vi
    Sasi.
    Certified LabVIEW Associate Developer
    If you can DREAM it, You can DO it - Walt Disney
    Attachments:
    color sorter 01i.vi ‏120 KB

Maybe you are looking for

  • How to backup and restore disk?

    Hello, I have an external disk that I want to repartition. Therefore I need to backup its contents (in fact it contains my time machine files), repartition the disk and then restore. As I understood I should use the disk utility, select the file syst

  • Calling an Oracle Report from a database trigger

    At the moment I have an Oracle form with a timer checking a table for new orders. when the form finds new orders an oracle report is run from the form (sending it to the printer directly) with the run_product procedure with parameters being passed al

  • Recover database to another database -- RMAN duplicate?

    I have a situation where I want to restore our production DB on server 1 (prod1) to test DB on server 2 (test1) to a paticular point in time. I have rman catalog and backup of production database. DB versions our both 10.2..0.3. I have been attemtpin

  • Error IN SRM CONTRACT Creation

    Hi, When i am executing the fucntion module 'BBP_PD_CTR_CREATE', it is showing the error 'Incorrect Interface Data for set 78 in method C'. What could be the problem? Please help.

  • Utl_file and lob datatypes

    hi, is there any problem writing data from lob datatypes to file using the above package ? We have some concerns about the pointer values especially when trying to export values which have forced the lob locator to be off-line. If we were trying to m