Can we achieve this cosmotic red from a JavaScript?

Hello
If I set a field as REQUIRED (pic. 1) I will get a bold thick red border aroud my field (pic. 2), well.
Setting a field as REQUIRED - Pic. 1
Getting below red bold thick border Pic. - 2
Pls. suggest us can we achieve the same effect / cosmotic effect with a JavaScript, if so, pls. help me by giving the JS code snippet
We want just cosmotic effect (no need of data validations), meaning, just a  thick red bold border around the just field (not including caption), pls. let us know the JS to get this
Thank you

Hi, to be able to set the text fields like so you should use the three line below:
TextField1.ui.textEdit.border.edge.color.value = "255,0,6";        //Change the color of the borders
TextField1.ui.textEdit.border.edge.stroke = "solid";                    //Change the look of the borders
TextField1.ui.textEdit.border.edge.thickness = "2pt";                 //Change the border's width
Hope this helps!

Similar Messages

  • Sorry - Could you please help me how can I achieve this Search help ?

    I am creating search help for the profit_center field,
    For the search help :
    The scenario is I have three Z-tables.
    Example: The Data in tables are as shown below ( where F1, F2 are the fields ).
    Ztable1
    F1
    A
    B
    C
    D
    Ztable2
    F1 F2
    A 1
    A 2
    B 112
    B 113
    C 34
    D 43
    D 55
    D 87
    Ztable3
    PRCTR F1 F2
    123 A 1
    124 A 2
    123 B 112
    124 B 113
    125 C 34
    123 D 43
    124 D 43
    125 D 43
    I need to create search help (Search Help is similar to Collective Search Help) for the field PRCTR of table Ztable3 like as below.
    By pressing F4 on the field, a pop up should appear which should contains text labels& text fields on TAB-Screen ( A, B, C , D as shown below as text lables )against which text fields should appear.
    TAB-Screen :
    A ____________
    B ____________
    C ____________
    D ____________
    If F4 is pressed on I/O field (text fields) against A in the above TAB-Screen, Corresponding values ztable2-F2 of A from ztable2 ( = 1, 2 ) should appear as F4 help.
    so that user can select ...
    Is it possible to acieve this ? It would be a great help ....How can I achieve this ?
    Finally based on above user selections say
    A ____________
    B ____________
    C ____________
    D ____________
    corresponding prctr values should be collected.

    <b>You can acheive   this .... first by creating the search help exit    ... by  creating the maintaince  view   then   using it in the   Creation of the search help </b> ...
    see the link for attaching the view   to the serach help .
    <a href="http://">http://www.sapdevelopment.co.uk/dictionary/shelp/shelp_elementary.htm</a>
    reward  points if it is usefull...
    Girish

  • I want to delete my current exchange account. How can I achieve this and not lose stored information such as contacts, photos etc. please help. Thank you.

    I want to delete my current exchange account and replace it with my new one. How can I achieve this and not lose my contacts, photos, etc associated with this account? Please help..
    Thank you,

    Bad idea.
    What information do you want to share, exactly?  You can share contacts, reminders, and calendars with other iCloud users without the need for both of you to use the same iCloud account.  You can authorize both phones to use apps purchased under the same Apple ID without sharing an iCloud account.
    Sharing an iCloud account is a bad idea in general. There is too much opportunity for someone to damage or delete data that will affect both.

  • How can I delete this U2 album from my iPhone it's not letting me do it like I normally do

    How can I delete this U2 album from my iPhone it's not letting me do it like I normally do

    King Penguin,
    Your response does not address the actual question.
    The issue is that once downloaded to a device (iPhone) etc. It cannot be deleted via any means. Went through troubleshooting with Apple on phone last night and they're puzzled by it... it's getting sent to their engineers.
    The larger issue is that the album downloads AUTOMATICALLY when you have your purchases synced, on wifi, and listening to music on full shuffle.
    Telling people to just "hide it" and change your phone's settings to not sync is a pretty big "whoopsie" by Apple and Apple Support Community members.
    BAD MOVE APPLE!

  • Bought a camera that included a Lightroom5 software... I don't have cd-player in my mac, can I download this Lightroom 5 from internet?

    Bought a camera that included a Lightroom5 software... I don't have cd-player in my mac, can I download this Lightroom 5 from internet?

    Lightroom - all versions
    Windows
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
    Mac
    http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh

  • Need to open .fcp  project from FCP7 in FCPX 10.0.3. How can I achieve this without exporting the original from FCP7 to a QT movie? I need the original timeline in FCPX.

    I have been working on a scholarship short film for a couple of months now (am a senior in high school) and have been using my school's Mac Pros with OSX 10.7 and FCP7 to edit it. Yesterday I bought a Macbook Pro and got FCPX, and am having trouble moving everything over (the computers at school are going to be wiped for the end of the year soon and I must continue to edit it on my MacBook). The project file "MattsShort.fcp" from FCP7 at school isn't even being recognized as a project file by the newest version of FCPX, so obviously I cannot open it and get to work connecting the media. How can I open this file in FCPX? Excluding exporting the project at school to a quicktime movie, I need to be able to further edit the timeline.

    Cool, thanks! I was able to import the timeline into FCPX but all of the files are offline, even though I imported the same exact clips that were in the original FCP7 project, into the same 'event' that I have the new FCPX timeline in. I believe the problem lies in that FCPX imported the clips and named them after the date and time they were created, rather than the "Clip #XXX" that FCP7 assigned to the timeline. Does this sound correct? And if so, is the only way to solve this problem to go back to FCP7 and rename all of the clips assigned to the timeline to the names FCPX gave them? I really hope there is a simpler solution but given all of the work it takes to even import a FCP7 project into FCPX, I wouldn't be surprised if that was the only solution.
    A little more info: When I use 7toX to convert the XML file, it says that my media will be offline.
    EDIT: I just watched a youtube video that explained that 7toX brings over the required media.....why isn't it doing that for me? I am on two different computers if I hadn't already said.
    Message was edited by: MattMadoni

  • How can I dump this installation parameters from other systems ?

    Hi there !
    I'm currently installing a new Solaris 10 system (Sun fire), but I'm not sure about some parameters that are asked during the installation.
    I'd like to check what those parameters are on another SUN system installed in my LAB.
    Those parameters are the Locale, Default route and Name service :
    Select a Locale
    0. English (C - 7-bit ASCII)
    1. Canada (English) (UTF-8)
    2. Canada-English (ISO8859-1)
    3. U.S.A. (en_US.ISO8859-1)
    4. U.S.A. (en_US.ISO8859-15)
    5. Go Back to Previous Screen
    Default Route for bge0 ??
    Name service
    ������������������������
    [ ] NIS+
    [ ] NIS
    [ ] DNS
    [ ] LDAP
    [X] None
    Is it possible to check what was selected on another SUN server I have here ?
    Running which commands on the server ?
    Many thanks !

    chrisfromgoodworth clatford wrote:
    How can I import music into iTunes from another media.
    I have a library downloaded from a Sony Ericsson W715 into "Media Go" and I want to transfer to iTunes and then into my iPhone 4.
    Is this possible ?
    Chris
    Possibly. Media Go supports a variety of music formats, some of which can be imported in to iTunes and then synced on to an iPhone, however some of its formats cannot be imported in to iTunes.
    See http://mediago.sony.com/enu/supported-file-formats/ for a list of formats supported by Media Go. iTunes for Windows supports MP3, AAC, WAV, and can import and convert WMA files as well. However iTunes does not support ATRAC, or FLAC.
    Furthermore, if some of your music has been bought from an Internet music store it might be procted by DRM. If so it cannot be imported in to iTunes.
    To do the importing you would either drag the music files in to iTunes, or tell iTunes to open them. See http://support.apple.com/kb/ht1347

  • When I start ffox I want the same 2 tabs to open EVERY time no matter what sites I have visited in previos session - can I achieve this

    when I start ffox I want the same 2 tabs to open EVERY time no matter what sites I have visited in previos session - can I achieve this

    In the home page setting you need to use a pipe (|) symbol as separator.
    See [[How to set the home page]]
    You can also create or modify a Firefox desktop shortcut and add the two URLs to the target field of that shortcut.
    In that case you need to separate the URLs with a space.
    "C:\Program Files\Mozilla Firefox\firefox.exe" http://site1.com http://site2.com

  • Can we execute a Powershell script from the Javascript?

    Hi,
    I have a certain requirement to add a Custom ribbon button in document library and there was a powershell script to be run for the selected item in the library.
    I have struck with executing a Powershell script from the javascript function.
    Can anyone please suggest me if this was achievable
    Thanks, Swaroop Vuppala

    Hi Swaroop,
    To execute server side code in a custom ribbon button script, using application page is a common way to do this, besides, you can also use a page dialog, which is similar with application page but display as model dialog, another way is javascript
    _dopostback and delegate control, the following article contains detailed information about this, please refer to it for more information:
    Invoke server side code on SharePoint ribbon click:
    http://sharepointnadeem.blogspot.in/2012/07/invoke-server-side-code-on-sharepoint.html
    Thanks,
    Qiao Wei
    TechNet Community Support

  • How can I call a servlet method from a javascript function

    I want to call l a servlet method from a javascript function.
    Does any one have an example of code.
    Thinks in advance

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • How can I achieve this with less code or faster?

    Hi Folks,
    I have 2 database tables, 'products' and 'products_staging'.
    Every day, the 'products_staging' table is updated with a fresh
    batch of products (which are imported from xml files in a seperate
    process using Navicat software). I need to somehow compare this
    database with the 'products' database to look for specific changes
    - i.e changes in price, deleted products, or new products. As some
    of the fields in the 'products' database are manually altered, such
    as the product name, I cannot do a straight sync with them.
    Therefore, I use the only field that will remain unchanged as the
    comparison field.
    The somewhat crude method I have come up with is to loop
    through the 'products_staging' table, looking for that specific
    field against the 'products' table. If it finds it, it then checks
    for a change in the price field (i.e has the price of that product
    changed). If there is a change, the 'products' table is updated.
    Likewise, if it's not found, it's treated as a new product and
    inserted as such and so on. At the end of the loop, the record is
    deleted from the 'products_staging' table - therefore at the end of
    the process, the table is empty ready for the next import the
    following day.
    At the moment, the database handles around 300,000 rows - but
    at some point I'm likely to be dealing with many more than that.
    It's working as it is, but taking a considerable time to do so -
    around 4 hours to go through the lot.
    Any suggestions on a better way of accomplishing this? My
    existing crude code is pasted below (the use of maxrows and the
    redirect is to prevent time-outs - parse2.cfm is virtually
    identical to this);

    Firstly, if possible, get the DBs to talk to each other
    without involving
    CF. That will just be slowing things down. CF's for
    generating HTML
    pages, and whilst it CAN interact with databases, it's not
    the best tool
    for the job.
    If that's not possible, use CF as a bridge between them, but
    only to bulk
    insert all the staging data into a temporary table (either
    literally a
    temporary table, or a permanent one used for holding data
    temporarily ;-)
    on the production DB, and then use a DB procedure to process
    all the data,
    again using only the DB server to do so.
    Lastly, if you MUST use CF to do the data manipulation, then
    minimise your
    hits to the DB. Instead of doing single hits to the
    production DB in your
    prodconnect query, get ALL the data you're likely to need for
    updates in
    one hit, then use CF to generate a payload for a bulk update;
    similarly any
    missing data from production can be inferred from that the
    difference
    between the staging and update data, and that can be used as
    your source of
    payload for a bulk insert.
    As a rule of thumb, if I find myself needing to perform
    single-row queries
    within a loop of another query, I start thinking I'm doing
    something wrong.
    Oh, yeah: when dealing with large amounts of queries like
    that, ALWAYS use
    <cfqueryparam> tags instead of static SQL strings.
    Every non-parameterised
    query you pass to the DB engine will need to be compiled
    first, and then
    it's also cached. Which slows you down, and eats memory on
    the DB server.
    This will leave the problem that you're not going to be
    generating your
    report as you go. However I imagine that's a "nice to have"
    compared to
    ensuring the thing actually works. You can generate your
    report
    separately, after the data processing has been done. I'm
    fairly certain
    you would be able to coerce a log out of the DB server,
    somehow, anyway.
    Adam

  • We have 2 session in workflow if 1st session got failed-still 2nd session has to execute and workflow should go to suspended mode.How can we achieve this?

    Thanks Veeru In this case workflow will go to Failed state but I want it in Suspended mode. Can you please help over here/

    HI Mounika, At session level you have option fail parent if task fails. Failing  Parent Workflow or Worklet #You can choose  to fail the  workflow or worklet if a task fails or does not run. The workflow or worklet that  contains the task instance is called the parent. A task might not run when the input condition for  the task evaluates to False.#To fail the parent workflow or  worklet if the task fails, double-click the task and select the Fail Parent If This Task  Fails option in the  General tab. When you select this option and a task fails, it does not  prevent the other tasks in the workflow or worklet from running. Instead, the  Integration Service marks the status of the workflow or worklet as failed. If you have a  session nested within multiple worklets, you must select the Fail Parent If This Task  Fails option for  each worklet instance to see the failure at the workflow level. #To fail the parent workflow or  worklet if the task does not run, double-click the task and select the Fail Parent If This Task  Does Not Run option in the General tab. When you choose this option, the  Integration Service fails the parent workflow if a task did not run.  This will help you. Regards,Veeru

  • Can Bash achieve this kind of completion ?

    I'm a bash user, who's been checking out a few zsh configs lately, to see what it's made of.
    And for the most part, I haven't seen many things that I couldn't live without, except for this nifty completion thingy :
    This config provides a completion mechanism, that displays little docstrings explaining a bin's options, which is so damn useful.
    When you type something like :
    ➜ ~ grep -[TAB]
    You get :
    --after-context -A -- specify lines of trailing context
    --basic-regexp -G -- use basic regular expression
    --before-context -B -- specify lines of leading context
    --binary-files -- specify type to assume for binary files
    --byte-offset -b -- print the byte offset with output lines
    --colour --color -- distinguish matching string
    --context -C -- specify lines of context
    --count -c -- only print a count of matching lines
    --devices -D -- specify handling of devices, FIFOs and sockets
    --directories -d -- specify handling of directories
    --exclude -- skip files matching specified pattern
    --exclude-from -- skip files matching pattern in specified file
    --extended-regexp -E -- use extended regular expression
    --file -f -- specify pattern file
    --files-with-matches -l -- output matching files' names only
    --files-without-match -L -- output non-matching files' names only
    --fixed-strings -F -- use literal strings
    --help -- display help
    -I -- process binary files as if non-matching
    --ignore-case -y -i -- case-insensitive
    --include -- examine files matching specified pattern
    --invert-match -v -- select non-matching lines
    --label -- provide filename to print for stdin
    --line-buffered -- flush output on every line
    --line-number -n -- prefix output with line numbers
    --line-regexp -x -- force pattern to match only whole lines
    --max-count -m -- stop after specified no of matches
    --mmap -- memory map input
    --no-filename -h -- suppress printing of filenames
    --no-messages -s -- suppress messages about unreadable
    --null -Z -- print 0 byte after FILE name
    --only-matching -o -- show only matching part of line
    --perl-regexp -P -- use perl regular expression
    --recursive -R -r -- recurse subdirectories
    --regexp -e -- specify pattern
    --silent --quiet -q -- suppress normal output
    --text -a -- process binary file as if it were text
    --version -V -- display version info
    --with-filename -H -- print filename with each match
    --word-regexp -w -- force pattern to match only whole words
    That's just awesome, and I really lust for this feature now...
    I haven't made the jump to zsh, as I'd rather stick with stuff that's available on virtually every machine I use (zsh users don't flame, I know it's basically better than bash, I'd just rather have portability over functionality most of the time).
    So any bash gurus know if this can be done ?

    I've been looking for that also... I think there is no "good" way to do it, but I use an ugly trick to get something similar.
    For example, for the kill command I use the following "complete" rule
    _kill ()
    local cur aux
    COMPREPLY=()
    cur=${COMP_WORDS[COMP_CWORD]}
    COMPREPLY=( $( compgen -W '$( ps -U$USER -o pid )' -- "$cur" ))
    if [ $COMP_TYPE -eq 63 ]; then
    echo ""
    ps -lU$USER |\
    awk -v cur=$cur '{if (index($4,cur)==1 || NR==1)\
    print "\033[1m" $4 "\033[0m" "\t" $5 "\t" $14}'
    fi
    return 0
    complete -F _kill kill
    which gives something like this
    olvar:~$ kill 10[TAB][TAB]
    PID PPID CMD
    10397 1921 urxvt
    10405 10397 bash
    10397 10405
    olvar:~$ kill 10
    Of course this is ugly, it uses ps twice and sorts the results twice, not to mention that you have the matches repeated in the screen,
    but I haven't found anything better nor how to hide the $COMPREPLY array.
    For grep i think I'd do something like
    _grep ()
    local cur
    cur=${COMP_WORDS[COMP_CWORD]}
    if [[ "$cur" = -* && $COMP_TYPE -eq 63 ]]; then
    echo ""
    $1 --help 2>&1
    echo ""
    fi
    _longopt $@
    complete -o filenames -F _grep grep
    Probably you would like to parse the output better than just the "$1 --help 2>&1" I wrote.
    Anyone else with a better suggestion?
    Last edited by olvar (2010-03-11 20:32:52)

  • Editing some photos on a MacBook, I get them on the Photo Stream on my iMac. Having set "automatically import Photo Stream to Library" in preferences, I still don't get them in the iMac photo library. How can I achieve this?

    I'm editing my photos on a MacBook Air and then photostreaming. On my iMac, I get the photos in Photo Stream, where they cannot be changed. I've set the Photo Stream preferences to "automatically import to Library" - but that does not happen. How can I get these new photos into my "old" iMac photo library?

    The monthly events "Feb2014" will show you all photos that have been imported from "My Photo STream", if you have enabled "Automatic Import" in the "Preferences > iCloud" tab.
    The albums you are seeing under "iCloud" are the "Shared Photo Streams" and "My Photo Stream". To import from your "Shared Streams" drag the photos frommthe Shared Streams album to the Projects in the library panel.

  • HOW CAN WE ACHIEVE THIS REPORT IN OBIEE10G

    THIS IS DATABASE TABLE
    APPLICATION_NAME     APPLICATION_STATUS
    ACNFS                              0.1
    ACNFS                              0.1
    ACNFS                              0.1
    ACNFS                              0.1
    ACNFS                             -0.9
    BDN                                   0.1
    BDN                                   0.1         
    BDN                                   0.1
    BDN                                   0.1
    BDN                                   -0.9
    BDN                                    -0.9
    BDN                                   -0.9
    C2C                                   0.1
    C2C                                   0.1
    C2C                                   -0.9
    C2C                                    -0.9
    FINALLY I WANT MY REPORT IS IN THIS FORMAT IN OBIEE10G
    APPLICATION_NAME      TOTALCOUNT     PASSEDCOUNT      FAILEDCOUNT      %AVAILABILITY
    ACNFS                              5                         4                              1                         80%
    BDN                                   7                         4                              3                         56%
    C2C                                    4                        2                              2                          50%
    PLS SUGGEST ME HOW TO DO THIS PROCESS IN OBIEE 10G  WITH LOGICS
    THANKS&REGARDS
    SUDHEER              

    Hi All, I have a scenario to implement.Need urgent help. I have relational source which has below fields. ID,Account,AccountType,Balance1,1001,GL,46567.901,1002,SL,56889.971,1003,Equity,45543.9081,1004,GL,89.541,1005,SL,-56889.971,1006,Equity,-45543.9081,1007,SL,-42777.45  Here my first requiremnt is to check if the balance value for entire file is 0 and if balance amount for each AccoutType is 0 , if both condtionn satifies the flow will go , else load will fail. I tried in below approach. SQ >> Expression >> Aggregator  In aggregaor i have first calculated sum(balance) for entire file by group by on ID column in an aggregator , and keep actual data in expression transformation. Then i took an expression to connect actual data with the sum(balance) , since i need to perform further calculation.I tried connecting expression and aggregator , but it is not allowing me to connect the posrts. And if i am using a joiner , then wrong data is loading to target. It is joining each result of aggregator with actual ports in expression.   I am not sure how to handle this scenario, so that we can just calculate sum of entire file and sum on basis of account type , is both sum are 0 then load the target , else fail.

Maybe you are looking for