Highlight Required DropDownByIndex with dotted red border
Hello, I have a context node named "copy". This node has 2 String attributes "key" and "value".
I also have a DropDownByIndex in which the texts are mapped to "copy.value".
This DropDownByIndex is mandatory/required so i need to validate if it is selected. In order to do that i have this code on the onAction of the submit button.
int selected=wdContext.nodeCopy().getLeadSelection();
if (selected==-1) //No item of the dropdown is selected
IWDAttributeInfo info = wdContext.nodeCopy().getNodeInfo().getAttribute("value");
msgMgr.reportContextAttributeMessage(wdContext.currentCopyElement(),info, IMessageTarjetasVentaComp.MISSING_INPUT, new Object[] {"COPY IS EMPTY"},true);
The issue here is that i need to display an error message and highlight the DropDown with the red dotted border. I can´t get it work because wdContext.currentCopyElement() is null when no item is selected for the DropDown.
I also test selecting one item of the DropDown and removing the condition "if (selected==-1)". I got the massage displayed but could not see the red dotted border.
I´m also doing like a validation with InputFileds and is working fine, i see the message and the red dotted border.
I appreciate any help.
Thanks in advance.
EDIT: I just tried it, and you're right, at first i didnt have this problem because i was using NODE Cardinality: 1..n, Selection :1..1, this way can't be empty.
Then i made the node Cardinality: 0..n, Selection: 0..1 (The way you have been trying) and yes, that Nullpointer happens.
You could just set the node Cardinality: 1..n, Selection :1..1 so that dotted red border wouldn't be needed.
But if you really need that option to leave it empty, I'll look for a solution anyways
Regards.
Julio Herrera
Similar Messages
-
ALV: Mark cell with red border
Hello,
can somebody tell me, how i can mark a cell as error, with a red border (which style is this)? My problem is that i've add some protocol entrys to the alv protocol at the event DATA_CHANGED_FINISHED with method ADD_PROTOCOL_ENTRY of class CL_ALV_CHANGED_DATA_PROTOCOL. After that i show the protocol entry with method DISPLAY_PROTOCOL but the wrong cells are not marked red. Is there a other method wich i've to call to et the cells marked red.
Best regards,
TomSdIf the cells are not marked in red, you probably missed to give the method the right parameters:
CALL METHOD rr_data_changed->add_protocol_entry
EXPORTING
i_msgid = '0K'
i_msgno = '000'
i_msgty = 'E'
i_msgv1 = text-004 "Buchungskreis
i_msgv2 = l_rbukrs
i_msgv3 = text-006 "exisitiert nicht
i_fieldname = ls_mod_cells-fieldname
i_row_id = ls_mod_cells-row_id.
you loop at your changed cells with
LOOP AT rr_data_changed->mt_good_cells INTO ls_mod_cells.
and with
CASE ls_mod_cells-fieldname.
WHEN 'RBUKRS'.
you can place the adding of the error protocol entry mentioned above.
You can have a look at it in program BCALV_GRID_EDIT. -
Infopath cannot submit the form because it contains errors. Errors are marked with either a red asterik(required fields) or a red, dashed border (invalid values).
Press Ctrl+Shift+O for next error or Press Ctrl+Shift+I for error details
Please help me, Thank in advance.
Sravan.Hi Sravan, this means that one or more of the fields are required to be filled in or have validation set up on them so that the information entered matches a certain criteria. Make sure what's entered matches what's required. If the form still can't be
submitted, check the rules set in InfoPath and the list/library to see what's causing the error(s).
cameron rautmann -
How do you remove or change red border in Livecycle required
How do you remove or change red border in Livecycle required field?
When I make a field required, it makes the pdf show a thick ugly red border. How can I change that?Now you see me, now you don’t.
Interactive forms highlight where you should enter data. To turn this highlighting on, click the Highlight Existing Fields button.
The fillable fields within the form (see example below) are highlighted in a light blue color. This lets you enter information into these fields. By default, Adobe® Reader® displays a red border around required fields:
Pretty dang ugly, huh?
Fortunately, it can be turned off. This script (placed on a form:ready event) will do the trick:
if (xfa.host.name == "Acrobat")
app.runtimeHighlight = false;
Here’s how we achieve this:
Part 1:
In the Object palette, click the Value tab. Under Type, choose User Entered – Required.
First, we need to define which fields are mandantory/required. Click within the desired field to select it.
You can assign as many mandatory fields as the form requires. When you are finished doing this, enter the Script Editor.
Note: To show or hide the Script Editor window as you need it, click the toggle.
Select the form:ready event. Be sure JavaScript is the chosen scripting language to run on the Client.
Type the following script into the window:
if (xfa.host.name == "Acrobat")
app.runtimeHighlight = false;
Save your work.
Part 2:
From the File menu, choose Form Properties.
Click the Form Validation tab.
Click Color Failed Fields.
Check the box next to Color fields and fail their validations.
To turn borders off, click the arrow next to Border Color, then click the box.
To define a background color, click the arrow next to Background Color, the choose More Colors.
Select the first available empty box, then click Define Custom Colors.
Define a custom color per your visual identity guidelines.
When you are finished, click on Add to Custom Colors, then click OK.
Click OK on the Form Properties window.
Save your work.
The result? When the user tries to submit a form without first entering data into the required fields, an alert message is displayed.
When the user clicks OK to clear the error message, form submission is cancelled.
Failed fields are highlighted in an attractive way—without red borders. -
Red line with matching red dot imovie 11
Hi All,
I'm just getting to know iMovie 11 and am now only baffled by a few things.. One of which is this red vertical line with a red dot that I sometimes make appear on the timeline... I'm not sure what it's for but would love to know! I've tried searching online to figure it out but I assume because I don't know what it's called, it's very hard to find anything about it...
Does anyone know what I mean and can you point me in the right direction of where to find out what it is and how it's used?
Thanks!I found a work around... If you copy and paste the video files into the events folder it adds them when you create a new project. I'm not really happy about doing it this way, but at least I can finish editing my clips
-
My ipod touch seems to have updated on its own, and now I can't access the songs, show a red circle with a red dot in the center. Computer says the songs are still on the ipod. Fix?
I have the same problem. I bought a 3rd party software (tunejack) and it allowed me to transfer my songs to my new pc. Now I can't play them because I am not authorized. It says I am but then it says im not.
-
Remove red border from required fields
Is there a way to remove the red border from required fields.?
No, not the same error message that Acrobat issues. You'll have to do your own using JavaScript. The script would check each of the required fields and alert the user if anything was wrong, but you'd have to set up your own "Print" button on the form and convince your users to use it. But they can always choose not to use it and orint without going through the checking process.
Even though there is a Document Will Print event that you can attach code to, there is no way to prevent printing in the event. -
After recovery, admin password filled in with "dots" and cannot delete or change it
Hello.
I ran the Windows 7 updates yesterday, but only the necessary ones. I did not install any of the optional ones. After the updates completed, I turned the computer on and it was stuck in a loop cycle - starting windows, then the admin password log in box came up. The box was fiiled in (with "dots" but too many to represent my password) and the screen just quickly flashed back & forth between the log in screen and "password incorrect". I tried to switch user, and it flashed back to the admin log in.
I did a system recovery to factory defaults (after backing up all data) using the recovery discs. After recovery, the "Set a password for account" screen comes up with the box below "Type a password" filled in completely with dots. I cannot erase them with the backspace or delete keys. If I highlight it and then try erase it with backspace or delete, the cursor just moves to the right hand side of the password box, but it still doesn't delete the faulty password "dots" so that I can change it.
I tried to reboot by holding in the power button and then turning it back on. After selecting country & language again, the same password screen come up.
It is stuck! Any help would be greatly appreciated! I computer I have is the HP TouchSmart 310 PC 1155-Y.
Thank You!
This question was solved.
View Solution.That is curious with a Recovery. First, try to reset the password using NTPassword. Make the CD, boot to it following the directions. If that does not solve the signon problem, consider installing the OS from a regular Windows 7 disk of the same version, using the key from the COA sticker.
{---------- Please click the "Thumbs Up" to say thanks for helping.
Please click "Accept As Solution" if my help has solved your problem. ----------}
This is a user supported forum. I am a volunteer and I do not work for HP. -
Wdr:select_options and highlight Error Message with a Link to Inputfield
Hi,
I have created a InputField on a View using WDR_SELECT_OPTIONS. I want to validate this Input Field and give
Error Message, when User fill it with wrong Values. How can we achieve this and important is to mark it on Screen WITH a RED STAR. ( e.g. highlighted )
Thanks!
Best Regards
Beserithan MalabakanI've not tried it with select options before, but you might wan to have a look at setting the REPORT_ATTRIBUTE_ERROR_MESSAGE method of the message object. This way the message gets attached to any UI element bound to the context attribute you issue the message for. But as I type this and think about it some more; I see where the problem lies. The Select Options component doesn't follow an approach of cross component context binding. It dynamically generates its own context.
If I had a little more time I would test this out; but it might be worth your while to research. When you initialize the Select-Options, you normally get access to the interface controller:
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_select_options( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
* get a pointer to the interface controller of the select options
*component
wd_this->lv_wd_select_options =
wd_this->wd_cpifc_select_options( ).
* init the select screen
wd_this->lv_sel_handler =
wd_this->lv_wd_select_options->init_selection_screen( ).
This interface controller (LV_WD_SELECT_OPTIONS in my case). Has a GET_API method that returns the component controller. In turn you might be able to access the context of the Select-Options directly. Its a crazy idea, but worth a try. -
Is there the way to use "Highlight File Format" with Acrobat Reader 9.0 or later?
hi
Do anyone know the way to use "Highlight File Format" with Acrobat Reader 9.0 later or substitutional way to highlight a PDF file as well as highlight file?
I want to highlight some words by indicating character's location(from n to m) using Acrobat Reader 6, 7, 8, and 9.
I use highlight xml file to highlight words in Acrobat 6, 7, and 8.
http://www.adobe.com/devnet/pdf/pdfs/HighlightFileFormat.pdf
According to this documents, "External Window Handler Plugin" is required to use highlight file.
But I cannot find this plugin in Acrobat Reader 9.
So Acrobat Reader doesn't recognize highlight file.
Well, I know that there is another way to highlight pdf file. It is called "PDF Open Parameters".
However this parameters cannot indicate location of characters but words which is to be searched.
This parameter does not work perfectly to substitute a highlight xml file.
To satisfy what i want to do, the best solution is that Acrobat Reader 9.0 recognizes highlight xml file.
But I think it is impossible because of lack of plugin.
Do anyone know the way to recognize a highlight xml file to 9.0 or another way to highlight some words?
thanks,
AsatamaxThe feature is disabled by default in reader 9
(1) Open Adobe Reader
(2) Click Edit > Preferences > Search, and
(3) check the box labelled Enable search highlights from external highlight server.
(response found here: http://support.dtsearch.com/dts0117.htm)
I can't imagine why Adobe choose to disable it. It's a bad joke for us at UNESCO (http://unesdoc.unesco.org) -
Ive got a problem with some red text printing greyscale for some reason and I cant tell why.
I set up a business card. I downloaded a vector logo from brandsoftheworld.com just like I have many times. I drop the logo in and get the card typeset. Then, on the person's name, I want their name to be red so I highlight their name and grab the Eyedropper tool and click on the red in the logo so it's the same red. Works just fine. Everything on screen looks fine.
HOWEVER.. when I print the card to our color copier, everything is cool except the name. It prints out in greyscale. Everything else on the card is great. I PDF'd the file and printed the PDF and that works fine... so I'm not sure whats going on. Thee PDF's are what I will be sending to press... but I'm still worried that something goofy is going on. Any ideas? The red is not a spot color either. There are some spot colors from the logo showing in my swatches palette but there is no red spot color. Could those spots be causing an issue with the red? The red in the logo prints just fine though.
CS3
10.5.4I don't think so Jeffrey. Heres what I tried.
Selecting the text as of now shows a red color in the Fill box on the tool bar. I then go to the swatches palette and hit "new swatch" button. This creates a new CMYK swatch with C=0, M=100, Y=100, K=0. So.. now that text is using that CMYK swatch. .....
WAIT A MINUTE.. apparently I WAS printing in greyscale to the color machine. I didnt notice that. The EPS file was printing in color and everything else was greyscale. Geeez... never had that happen before. But... it works fine now. Thanks for the info guys! -
Hi,
In Photoshop CS3 I'm creating a 5 x5 pixel image in a green color. On my canvas it shows it completely green. I then emboss it. Before and after I emboss it I look at the navigator window and I see this red border around the green image. After I save it as a PSD file and then bring it into Dreamweaver, I can see the red border when viewing in IE. I tried making the background and foreground green but still a red border. Am I missing something?
Thanks
SteveYou're confusing some things...
The red rectangle in the Navigator window has nothing to do with the content of your image. It shows you what part of your image you're looking at in the main window.
If you're saving your file an seeing the red border in the image, you have somehow saved the red color in the image, or the way you're using the image has put a border around it. For example, put in a web page a certain way a browser might put a border around the image to indicate that it's a link. I'm not familiar with DreamWeaver, but I suspect from what you're describing the red isn't really in the image.
Do you see the red in the image when you use an image viewer to view the file from within your folder?
Please post the image here (use the little camera icon just above where you type) and we'll let you know if we see any red.
-Noel -
Highlighting Current Page with CSS
This morning I post my first Dreamweaver/CSS site. It is for
a DVD I produced about infant massage. www.BabyBabyOhBaby.com.
What I'd like to do is highlight the current page in the
navigation bar using either a border or color change. I've found
some sites like
http://www.hicksdesign.co.uk/journal/highlighting-current-page-with-css
but, sorry to say, I'm a beginner at both Dreamweaver & CSS and
I can't quite follow the code.
Is there some way within Dreamweaver to accomplish the
highlighting in design view without writing the code? Or perhaps
someone has some very basic elementary CSS guidance?
Thanks for your time,
DavidOh, yeah. 8)
Get that....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"E Michael Brandt" <[email protected]> wrote
in message
news:[email protected]...
> <informative but also self-serving>
>
> Really we have made this much much easier. divaGPS
creates you-are-here"
> menu highlighting and is easy to add to any number of
pages at once - even
> Templates' Child pages. It is a commercial DW Extension
that will save
> you lots of time and effort.
>
>
http://divahtml.com/products/divaGPS/current_menu_location.php
>
> <informative but also self-serving />
>
> --
>
> E. Michael Brandt
>
> www.divaHTML.com
> divaGPS : you-are-here menu highlighting
> divaFAQ : FAQ pages with pizazz
>
> www.valleywebdesigns.com
> JustSo PictureWindow
> JustSo PhotoAlbum
>
> --
>
>
> Murray *ACE* wrote:
>> You need to know the downside to using layers as a
primary layout
>> device - open your page in Firefox (or any non-IE
browser) and bump the
>> text size up a tick or two. Ugh....
>>
>> Here's your navbar -
>>
>> <div id="navbar"><a
href="index.html">Home</a> | <a
>> href="about_dvd.html"> the DVD</a> | <a
href="preview.html">Preview</a> |
>> <a href="reviews.html">Reviews</a> |
<a href="infant_massge.html">Infant
>> Massage</a> | <a
href="contact_us.html">Contact Us</a> | <a
>>
href="shopping.html">Shopping</a></div>
>>
>> Change it to this -
>>
>> <div id="navbar"><a href="index.html"
id="button1">Home</a> | <a
>> href="about_dvd.html" id="button2"> the
DVD</a> | <a href="preview.html"
>> id="button3">Preview</a> | <a
href="reviews.html"
>> id="button4">Reviews</a> | <a
href="infant_massge.html"
>> id="button5">Infant Massage</a> | <a
href="contact_us.html"
>> id="button6">Contact Us</a> | <a
href="shopping.html"
>> id="button7">Shopping</a></div>
>>
>> Then on each page, embed a little stylesheet in the
head by changing
>> this -
>>
>> </head>
>>
>> to this -
>>
>> <style type="text/css">
>> a#buttonX { your highlight styles }
>> </style>
>>
>> and just change the "X" to whatever number button
you want to highlight.
>>
>> You can do this in Design view, but it's too
tedious.
>> -
How many ipods do i have to go through with the red x?
i have had 3 ipods in the past 6 months the recent one ive had for 3 weeks after getting it back ive sent in 3 ipods so far and getting tired of putting music and videos on it and having it end up with the red X. how many ipods do i have to go through before it wont break?
Message was edited by: heytheredude878
Message was edited by: heytheredude878You need to upgrade to Snow Leopard first. Contact Apple to buy a Snow Leopard installation DVD.
Make sure your system meets Snow Leopard's requirements:
Mac OS X v10.6 Snow Leopard system requirements
To install Snow Leopard for the first time, you must have a Mac with:
An Intel processor
An internal or external DVD drive, or DVD or CD Sharing
At least 1 GB of RAM (additional RAM is recommended)
A built-in display or a display connected to an Apple-supplied video card supported by your computer
At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools
Once you have Snow Leopard, you can upgrade to whatever your MacBook will support.
There is no need for sequential upgrades. The reason Snow Leopard is a prerequisite for further upgrades is that it includes the App Store. All OS versions subsequent to Snow Leopard are distributed that way. -
Red Border Around Logo on PC browsers
There is a thin red border around the logo on the site I am creating. I am on a Mac and didn't notice this issue until I was troubleshooting on a PC. The red border only appears on PCs.
I viewed my site in Firefox, Safari, and Chrome on the mac. No red border.
I viewed the site in IE and Firefox on PCs. Red border.
Anybody know the issue? (I'm thinking it has something to do with the a link values because the color changes from red to blue after the image is clicked.)
http://www.jgraveslawyers.com
a:link {
text-decoration: none;
color: #900;
background: transparent;
a:visited {
text-decoration: none;
color: #006;
background: transparent;
a:hover {
text-decoration: none;
color: #F00;
background: transparent;
a:focus {
text-decoration: none;
color: #fff;
background: #6196BC;
a:active {
text-decoration: none;
color: #600;
background: transparent;It doesn't have to do with that. You need to remove the border from that instance. Now you could use:
a img { border: none; }
But that would eliminate the borders from around all images. If you only want the one image to have no border around it you should just have to use the border: none attribute on the img tag (ie: style="border:none;" inside the <img> tag).
Maybe you are looking for
-
Ongoing problems - Would like to request a call back
Hi all, I have quite a tale to tell you, and am reaching out for assistance by somebody that has authority to make decisions Once my account and case ID have been reviewed I would like a call back at the number on file. Thank you! 1/11 I ordered an
-
Buttons Not Working in Content Viewer v21
I create two simple buttons in my document that go to the Next or Previous state of my Multi-State object On-Click. When I test it out in my desktop Content View and click the mouse, the only thing that happens is the Conten Viewer menu comes up. I'v
-
Slow moving items:repost
Hi, In this link, in slow moving article on page 12, <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/bb7eb390-0201-0010-498c-80532df171a5">https://www.sdn.sap.comhttp://www.sdn.
-
I installed Lion OS X and Logic Pro won't run. I downloaded the 9.1.5 update: "An Eligible Logic Pro Version Was Not Found in the Applications Folder. This Update require Logic Pro Version 9.0 or higher". I have Logic Pro Version 9.1.1 installed. I
-
Automatic Archiving without losing the attached document ?
Hi Experts, I wanted to go ahead with retention period so that documents will get auto archived after retention period. But since my last post (and your expert opinion), I understood that there is nothing like Retention period in DMS. If we want to a