Dynamic record group works not when using apostrophes

Hello world

I developed a form most of the time, everything works as expected. However, there is a search feature that gives me problems. The problem is that when the user enters the search criteria for last_name with an apostrophe (O'brian) lov research get filled because the dynamic disk group is not created when the string contains an apostrophe (i.e. O'brian). I have a dynamic disk group that takes the user's search criteria and fills a LOV on the screen with the corresponding records to their criteria.

Here is the code that is behind my search button where the dynamic RG is created. It works very well for any research that does not contain an apostrophe. BTW, the Oracle Forms version is 10g.

DECLARE

p_where_debtor varchar2 (2000);
p_where_liab varchar2 (2000);
RG_ID RecordGroup;
v_query varchar2 (2000): = null;
rg_name varchar2 (2000): = "RG_LIAB_LST";
ERRCODE NUMBER;
BEGIN

IF: SEARCH.cd_nb is null and
: SEARCH.cd_seq is null and
: SEARCH.f_name is null and
: SEARCH.l_name is null and
: SEARCH.mi_name is null
then
display_message (' search criteria must be entered ");
raise form_trigger_failure;
END IF;

v_query: = ' SELECT name, middle_name, c_no, c_seq
FROM TABLE_VW2 WHERE 1 = 1';
/ * Search criteria entered by the user * /.

IF: SEARCH.l_name_srch IS NOT NULL THEN
v_query: = v_query | "AND UPPER (last_name) AS"' | Upper(:Search.L_Name) | » %''';
END IF;

IF: SEARCH.f_name_srch IS NOT NULL THEN
v_query: = v_query | "AND UPPER (first_name) AS"' | Upper(:Search.F_NAME) | » %''';
END IF;

IF: SEARCH.mi_srch IS NOT NULL THEN
v_query: = v_query | "AND UPPER (middle_name) AS"' | Upper(:Search.mi_name) | » %''';
END IF;

IF: SEARCH.cdcs_nbr_srch IS NOT NULL THEN
v_query: = v_query | "AND UPPER (c_no) AS"' | Upper(:Search.cd_nb) | » %''';
END IF;

IF: SEARCH.cdcs_seq_srch IS NOT NULL THEN
v_query: = v_query | "AND UPPER (c_seq) AS"' | Upper(:Search.cd_seq) | » %''';
END IF;

/ * Make sure that the record group exists * /.

RG_ID: = Find_Group (rg_name);

/ * If there are then create record group * /.

IF id_null (rg_id) THEN
RG_ID: = create_group_from_query (rg_name, v_query);
END IF;

IF this is id_null (rg_id) THEN
delete_group (rg_id);

RG_ID: = create_group_from_query (rg_name, v_query);
END IF;

Errcode: = Populate_Group (rg_id);

Any help would be greatly appreciated.

Thank you

Adrian

For each item where an apostroph may occur, make a

REPLACE(:BLOCK.ITEM, '''', '''''');

Tags: Oracle Development

Similar Questions

  • Micro works not when using Skype. Problem is not with the microphone, but with Skype. Ive tried

    When you use Skype, my internal microphone does not work - friend says that he can not hear the voice, but he can hear other sounds - music on youtube for example. Ive tested the microphone on Skype Echo - it wasn't working at all. I tested it on a voice recorder - MIC was working properly. Also when I just started to use this laptop (3 days ago), I spoke with a friend through Skype for about 3 hours, and then he couldn't hear me suddenly annymore. If something is wrong with Skype. Computer consultant suggested me to contact Skype support technicians.

    In Skype, open Tools-> Options-> Audio settings. There is more than one option available in the selection box for Microphone?

  • LineChart works not when using Flex with joint & amp; JBoss

    This is my first use of Flex with JBOSS Seam and I tried the incorporation of LineCharts Flex with seam on helloworld.mxml. I get this compile error when trying to compile/deploy JBOSS task. I was able to get other parts like the Label, Button, TextInput working. Single line graphs or Bar seems to have problem with the compilation.

    C:\projects\GraniteDSHelloWorldSeam\view\helloworld. MXML (55): error: Type was not found or is not a constant of compilation: LineChart.
    [mxmlc] < mx:LineChart id = "myChart".


    Please provide any suggestions if you have encountered a similar problem.

    I appreciate your help.


    The code below for the helloworld.mxml

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Application xmlns:mx = ' http://www.adobe.com/2006/mxml " xmlns:seam =" org.granite.seam. * ">

    < couture: SeamRemoteObject id = "HelloWorldRO" destination = "destSeamHelloWorld" fault = "onRemoteFault (event); ">
    < couture: addOperations >
    < name of couture: SeamOperation = "sayHello" result = "sayHelloResult (event); "/ >
    < / couture: addOperations >
    < / couture: SeamRemoteObject >

    < mx:Script >
    <! [CDATA]
    Import mx.collections.ICollectionView;
    Import mx.collections.ArrayCollection;
    Import mx.rpc.events.ResultEvent;
    Import mx.utils.ObjectUtil;
    Import mx.rpc.events.FaultEvent;
    Import mx.controls.Alert;

    private var startTime:Number;
    private var endTime:Number;

    private void sayHelloResult(event:ResultEvent): void {}

    endTime = getTimer();
    outputText.text = event.result.toString ();

    Alert.Show ("response:" + number (endTime - startTime) + "ms \nServer response:"+ event.result.toString () ');
    }

    private void onRemoteFault(event:FaultEvent):void {}
    trace (ObjectUtil.ToString (Event.Fault));
    Alert.Show ("fault:" + event.fault.faultCode + '-' + event.fault.faultString + '.) toString() is ["+ ObjectUtil.toString (event.fault) + '"]');
    }

    private void sendServerRequest(): void {}
    startTime = getTimer();
    HelloWorldRO.sayHello ();
    }

    [Bindable]
    public var fresh: ArrayCollection = new ArrayCollection([) collection
    {Month: "Jan", result: 2000, expenses: 1500, amount: 450},
    {Month: "Feb", result: 1000, expenses: 200, amount: 600},.
    {Month: "Mar", result: 1500, expenses: 500, amount: 300}
    ]);

    []] >
    < / mx:Script >

    < mx:Label text = "Send the request to the server" x = "244" y = "192" fontSize = "16" fontWeight = "bold" width = "209" height = "24" color = "#A9CCD3" / >
    < mx:Button '494' = x y = "195" label = "click on" click = "sendServerRequest (); "/ >
    < mx:TextInput name = "outputText" id = "outputText" width = "350" x = "244" y = "243" editable = "false" text = "" / >

    < mx:Panel title = "Graphic line" >
    < mx:LineChart id = "myChart".
    dataProvider = "{cost} '.
    showDataTips = "true".
    >
    < mx:horizontalAxis >
    < mx:CategoryAxis
    dataProvider = "{cost} '.
    categoryField = 'months '.
    / >
    < / mx:horizontalAxis >
    < mx:series >
    < mx:LineSeries
    yField = "Profit".
    displayName = "Profit".
    / >
    < mx:LineSeries
    yField = "expenses".
    displayName = "expenses".
    / >
    < / mx:series >
    < / mx:LineChart >
    < mx:Legend dataProvider = "{myChart}" / >
    < / mx:Panel >


    < / mx:Application >
    Text

    I used GraniteDS earlier and it did not work.
    Now, I tried to use BlazeDS and it seems to work fine. Atleast bringing Flex components with graph correctly.

  • update firmware 3.0.0f0 in 1900 to 3.5.0f0 and propellant myrio works not when use turn the engine.

    Dear Sir

    I run this problem when I updated the firmware in myrio 1900 version 3.0 to 3.5. Before update, thrusters worked fine using the runtime engine, after update, propellers no longer exists. Any help will be much appreciated!

    Thank you

    Long

    Hey Tao!

    I'm glad to hear that your ports are now displayed in MAX. And I think it is a good idea to use the outputs analog on the myRIO. As long as you know the needs of the motor controller to order the right moves tension and a control loop in place, you should be good to go.

  • BCC works not when using custom property accessors

    Hello

    In the integration of the ATG-short, I try to use "custom property accessors" in my "product-sku-output - config.xml". I'm including the sub modules in the classpath of build.xml.

    < dir = "${dynamo.home}" / fileset... / DAF/Research/Base/lib ' > "

    < name = "" * / *.jar "/ >"

    < / fileset >

    < dir = "${dynamo.home}" / fileset... / DAF/Search/Index/lib ' > "

    < name = "" * / *.jar "/ >"

    < / fileset >

    When I Isaiah to compile the project, these modules have been included in my atg_bootstrap.war of the file .ear as '/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/'. However, when I start the server, in the instance server log merchandising get the below error and for this reason the server has been stopped and cannot access the BCC.

    I try to use the custom property accessor class - PropertyAccessorImpl

    2013-07-03 11:04:46, 418 INFO [STDOUT] Configuration directory (principal) or the /var/jboss/versions/jboss-eap-5.1/jboss-as/server/merch/deploy/ulta.ear/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/configlayers/stagingandprod/config.jar file does not exist or is not readable

    2013-07-03 11:04:46, 903 ERROR [STDERR] java.util.zip.ZipException (principal): problem opening /var/jboss/versions/jboss-eap-5.1/jboss-as/server/merch/deploy/ulta.ear/atg_bootstrap.war/WEB-INF/ATG-INF/DAF/Search/Index/configlayers/stagingandprod/config.jar zip file: error in opening zip file

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:124)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:97)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.vfs.zip.ZipFileSystem. < init > (ZipFileSystem.java:142)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.nucleus.ConfigurationFileSystems. < init > (ConfigurationFileSystems.java:124)

    2013-07-03 11:04:46, 904 ERROR [STDERR] (principal) at atg.nucleus.ConfigurationFileSystems. < init > (ConfigurationFileSystems.java:244)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus.createConfigFileSystems(Nucleus.java:1827)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:842)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:766)

    2013-07-03 11:04:46, 905 ERROR [STDERR] (principal) at atg.nucleus.Nucleus. < init > (Nucleus.java:747)

    Please help me to solve this error.

    Thank you

    There is typo in the ATG installation that creates this problem.

    For example, change the file C:\\DAF\Search\Index\META-INF\MANIFEST. MF

    ATG-StagingConfig-path: configlayers/stagingandprod/config.jar

    Peace

    Shaik

  • My Apple iPhone 5 touchscreen doesn't work not when the call comes. This problem is only in locked mode and mode unlocked when the call come it works normally. The problem is only locked Iphone and a just coming guard time. give soltn

    Hello can anyone give solution to my problem.

    my iPhone touch 5 works not when it is in locked mode and it's time all incoming call came the touch works do not. other times, the touch works normally wat is the problem. ?

    If you disturb not activated. Settings > do not disturb.

  • Creating dynamically record group.

    Hello

    I have multi line block. My req is I create record group dynamically based on some fields of line level. This item then my card code - key.

    DECLARE
    group_id RecordGroup;
    v_lms_lov lov.
    BEGIN

    group_id: = Create_Group_From_Query ("RG_LMSID",
    ' SELECT lms_id
    OF sify_lms_header
    WHERE from_location =: lines.from_location
    AND to_location =: lines.to_location; »

    v_lms_lov: = find_lov ('LOV_LMSID');

    set_lov_property (v_lms_lov, group_name, 'RG_LMSID');

    Set_Item_Property('LINES.) LMS_ID', LOV_NAME, 'LOV_LMSID');

    END;

    It is said, no record in lov. Anything I've missed.
    Or any other way to do this.
    Pl help.

    Thank you
    Kouadio

    Kouadio,

    Why you need dynamic disk group for this?, you can give the control names in the query of the record group. Then the query of the record group will be

    SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = :LINES.FROM_LOCATION AND TO_LOCATION = :LINES.TO_LOCATION
    

    If you still want to use dynamic disk group creation, then try

    DECLARE
         RG_Group_ID RECORDGROUP;
    BEGIN
         RG_Group_ID := FIND_GROUP('RG_LMSID');
      IF NOT Id_Null(RG_Group_ID) THEN
              DELETE_GROUP(RG_Group_ID);
      END IF;
         RG_Group_ID := CREATE_GROUP_FROM_QUERY('RG_LMSID', 'SELECT LMS_ID FROM SIFY_LMS_HEADER WHERE FROM_LOCATION = ''' || :LINES.FROM_LOCATION || ''' AND TO_LOCATION = ''' || :LINES.TO_LOCATION || '''');
         SET_LOV_PROPERTY('LOV_LMSID',     GROUP_NAME, 'RG_LMSID');
         SET_ITEM_PROPERTY('LINES.LMS_ID', LOV_NAME,   'LOV_LMSID');
    END;
    

    Kind regards

    Manu.

    If my response or response from another person was helpful, please mark accordingly

  • Ports USB U2312HM works not when connected to USB 3

    I use a U2312HM to work, but when I plug the USB connector to a USB 3 port on my laptop, the USB 2 ports on the monitor are not recognized. Device Manager shows it as an unknown device and no drivers to install can be found. When I use a tool like slim or driveridentifier drivers it doesn't ID the device but shows not all compatible drivers.
    When I connect the monitor to the only USB 2 port, I have on my laptop that hub is USB monitor comes to life, but I'm already using this USB port for another purpose. Can anyone tell my where I can find the correct drivers?
    I'm running Windows 7 Pro SP1 on a Dell Latitude E6530, processor Intel Core i7 3770QM with 8GM ram.

    Kvwielink,

    Install this driver, restart when done, repeat the test.

    Intel USB 3.0 eXtensible Host Controller Driver
    https://Downloadcenter.Intel.com/Detail_Desc.aspx?DwnldID=21129

  • trace works not when creating application air Flash cs6

    Hello

    When I compile the application air Flash cs6, function trace not workk and flash cs6 error expedition with that title: movie lunch doesn't have a test, please help me

    AIR uses the ADL (AIR Debug Launcher) to run applications so there is not anything in the output window output until ADL closes and even in this case it does not use trace();

    If you want to see your comments that the app works that you use an application like arthropods (http://arthropod.stopp.se) that displays the instructions using Debug.log (); instead of trace().

    So the arthropod window open and change all your instructions trace() Debug.log () as in Debug.log ("hello"); and the output when you run the application.

  • Aggregation in IR works incorrectly when using calculated columns breaks

    I have a problem with the aggregation in IR when using stops on calculated columns.

    Please see the exact steps to reproduce the problem in my next post below

    Martin

    Published by: Martin Krepelka, October 22, 2008 11:18

    Martin,

    I filed a bug about the problem you are having. The problem is when you control break on a calculated column with defined format mask and aggregates, the aggregate information is not displayed correctly. When I run the interactive report in debug mode, I see that analytical for aggregated information function partitions incorrectly. Using your example:

    IR runs this query to get the counts for each month of posting:

    count("AMOUNT") over (partition by "POSTING_DATE")
    

    Instead, it should run this query:

    count("AMOUNT") over (partition by to_char("POSTING_DATE",'RRRR/MM'))
    

    To work around the problem, you can change the calculation month without the format mask view and set to_char(F,'RRRR/MM'). Aggregates will display correctly.

    Christina

  • HP ProBook 440 G2, fingerprint reader works not when I upgraded the Win 7 Pro form to win 8.1 Pro

    My HP ProBook 440 G2, finger print reader does not when I upgraded the Win 7 Pro form to win 8.1 Pro.

    Device manager showing the biometric reader works correctly. But in fact, the finger printer reader is not reading or senseing. It seems that the part "dummy". Please help me to correctly configure step by step for that matter.

    Thank you

    Hillet

    Have you installed the software driver validity sensor fingerprint for Windows 8.1?

    http://h20564.www2.HP.com/hpsc/SWD/public/detail?sp4ts.Oid=6943811 & swItemId = ob_134806_1 & swEnvOid = 4158

    See page 64 in the manual Windows 8.1 according to the configuration of fingerprints of validity information

    http://h20565.www2.HP.com/hpsc/doc/public/display?sp4ts.Oid=6943810 & docid = emr_na-c04371762 & docLocale = en_US

  • liaison work not when you use EL for Hashtable keys

    Hi all

    Here's the scenario: I have an iteration of the external, in this iterator, a table and a PanelGroupLayout are generated; the PanelGroupLayout displayed or not displayed depends on a property in backing bean which is a hash table and touch which is based on the attribute of the external iterator, so access to the current item in the hash through table

    the key, he has incorporated EL; and inside the table, there are 2 radio buttons and each is bound to an instance of CoreSelectBooleanRadio using a hash table and key in this table is based on the same attribute of the external iterator (so same EL), the segment code looks like this:

    < tr:iterator var = "item" varStatus = "status" value = "#{bk_myBackingBean.subQuestions}" lines = '0' > ' "

    < tr:panelBox > <!-block test to check how to access the hastable value is OK->

    < tr:outputText value = "#{item.questionNumber}" / >

    < tr:outputText value = "#{bk_myBackingBean.dependent.medicalData.displayQ2Answers [item.questionNumber]}" / > <! - it's a good way to get the hastable value - >

    < / tr:panelBox >

    < trh:tableLayout >

    < trh:rowLayout >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 10px 0 10px 50px;  styleClass = "alignleft" >

    < label > < tr:outputText value = "#{item.questionLetter} #{item.description}" / > < / label >

    < / trh:cellFormat >

    < trh:cellFormat columnSpan = "2" inlineStyle = "padding: 0 0 10px 50px" styleClass = "alignleft" >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:selectBooleanRadio id = "Q2No" group = "question2 #{status.index}" text = "" autoSubmit = "true" inlineStyle = "border-width: 0px; »

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < tr:spacer width = "5px" / >

    < tr:selectBooleanRadio id = "Q2Yes" group = "question2 #{status.index}" text = 'Yes' autoSubmit = "true" inlineStyle = "border-width: 0px; »

    onclick = "removedRequiredError (this.ID)" "

    valueChangeListener = "#{bk_myBackingBean.QuestionChangeListener} '"

    binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos [item.questionNumber]}" "

    >

    < f: attribute = name value = "#{item.questionNumber"questionNumber"}" / > "

    < / tr:selectBooleanRadio >

    < / tr:panelGroupLayout >

    < tr:panelGroupLayout layout = "horizontal" >

    < tr:outputLabel id = "Q2Error" value = "#{bk_myBackingBean.dependent.medicalData.questionErrors [item.questionNumber]}" "

    styleClass = "error" / >

    < / tr:panelGroupLayout >

    < / trh:cellFormat >

    < / trh:rowLayout >

    < / trh:tableLayout >

    "" < tr:panelGroupLayout layout = "default" inlineStyle = "#{bk_myBackingBean. dependent.medicalData.displayQ2Answers [item.questionNumber]}".

    I checked the value of #{item.questionNumber} is just out of view it in the interface user as described above and also I tried to exit with a value in the hashtable and it is successfully recover and displayed in the user interface. (Those who are in the < tr:panelBox > block above) and the hastable displayQ2Answers is of type < String, String >. So far so good, but when I tried to link in what follows the radios and the PanelGroupLayout, he throws NullPointerException. But if I tried to link explicitly radio to an item in the hash table instead to use the key "" EL:

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2NoRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2NoRdos ['q2a']} '

    "Binding =" #{bk_myBackingBean.dependent.medicalData.q2YesRdos [Item.questionNumber]} '-> binding = "#{bk_myBackingBean.dependent.medicalData.q2YesRdos ['q2a']} '

    then the page is rendered with success.

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type < String, String >, I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of < String, CoreSelectBooleanRadio > or < String , CorePanelGroupLayout > (this is not shown in the above code segment), the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. so apparently not caused by initialization

    . What follows is an overview of the data model, this is how I initialize the option button:

    public class MedicalInfo {}

    == getters and setters are defined but not shown here

    / / theare hash tables used to be linked to radio buttons

    Hashtable < String, CoreSelectBooleanRadio > q2NoRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    Hashtable < String, CoreSelectBooleanRadio > q2YesRdos = new Hashtable < String, CoreSelectBooleanRadio > ();

    / / these are the items that are stored in above hash for the actuall link tables

    private CoreSelectBooleanRadio q2aNoRdo = new CoreSelectBooleanRadio();

    private CoreSelectBooleanRadio q2aYesRdo = new CoreSelectBooleanRadio();

    and in the constructor, except for the hash for the binding tables:

    public MedicalInfo() {}

    ...

    q2NoRdos.put ("q2a", q2aNoRdo);

    q2YesRdos.put ("q2a", q2aYesRdo);

    ...

    }

    Where could I have missed or done wrong? Any hint is appreciated!

    Thank you

    Shawn

    I'm pretty confused at this point: as you can see, when it relates to a hash table and hastable type of , I'm able to retrieve the element in the Hashtable using EL for 'key', but when the binded hastable is type of or (this is not shown in the above code segment) the link seems defective. I think with the exception of pouinter NULL can be caused by the initialization of the bound element, but when I replace the EL with the string for the key, as shown above, the page works. It is not caused by the initialization

    Well, #{number} is not resolved in the same phase as the 'binding' property ("compulsory" is resolved in the phase of restore view and variable "var" is resolved in the rendering phase).

    Dario

  • Z500 touchpad work not when you use the keyboard. Please help me please!

    Hello

    I recently bought a lenovo z500 and it's great, but I have a little problem. When I use the keyboard to play games (I use the WASD keys) the touchpad does not, which means I can't play. Help, please!

    I got it finally started working by removing the pilot of the momentum. I don't think that I will reinstall it. Thanks for your help

  • speakers work not when you use the external monitor

    I use a laptop HP Envy and HP Pavilion 25bw external moniter connected via an HDMI cable. With the help of Windows 8.1. The sound is muted when the laptop lid is closed. If I open the lid I hear for about 2 seconds, then it turns off. If I remove the HDMI cable, the sound lights. How can I get the sound to work with the connected 25bw and close the lid?

    Hello

    Please try to hell sound HDMI playback devices

    Right click on the speaker icon,

    Select playback device

    Click with the right button on HDMI sound

    Disable it.

    Kind regards.

  • A STANDARD XML TAG DOES NOT WORK PROPERLY WHEN USED IN RTF FILE FOR XML RE

    Hello

    I am using the following tag:
    <? If: TASK_STATUS = "Open"? > < xdofo:ctx xsl: attribute = 'block' name 'color' = > red < / xsl: attribute >
    <? end if? >
    to change the color of foreground text which, according to some conditiosi, need to print in
    PDF format using xml and rtf files reports.
    But I was able to get only 3 colors (red, blue, green) to use, other colors such as orange, cyan etc are not
    work.
    Please let me know what all the colors are supported by oracle in printing to PDF using xml reports.
    Indicate if we do a few things related to parameters or so.

    I'm usning 5.6.3 XML version.

    Kind regards
    Amar

    Colors can be expressed by a known name and a hexadecimal value. The hexadecimal format is widely used in HTML programming and has a format of #abcdef, and "abcdef" may be as aaddcc values and so on. For some primary colors, you can get away with #abc, but this is not very common.

    You should always design with colors Web safe in mind. That limited to 16, but should be much thinner (more all 16 have known names like red, cyan, yellow, etc.).

    http://www.w3schools.com/HTML/html_colors.ASP has a good explanation of the standards.

Maybe you are looking for