Sorting options in javascript by text and not by value
Hi All,
I've an application in which on a jsp page has two html:select (listBox). Further 3 buttons are provided namely ADD,REMOVE and SAVE. On click of ADD the selected option from listBox 1 is transferred from listBox 1 to listBox 2. On Click of REMOVE the selected option from listBox 2 is transferred from listBox 2 to listBox 1.
My problem starts from the next step. When an item is transferred from source to target listBox. The target listBox should be sorted alphabetically. Now in html:option values are IDs which are int and text is name which String. And the sort method is called upon array of options, which sorts according to value and requirement is that it should sort by text.
Somebody please help me regarding this problem. Waiting for help.... Thanks in advance.
I have been working on a similar problem and have found that it depends on what kind of InfoProvider you are using.
If you are using an InfoCube, the setting that seems to control this is on the maintenance screen (Admin Workbench -> {InfoProvider to be edited} -> Change -> Extras -> Structur-Specific InfoObject Properties. If you want the key and text to display on the variables screen (which you already have), make sure the 'Display' is set to "Key and Text". If you want key and text to display on the filter screen, make sure the 'F4 Query' is set to "Values in Master Data Table". (You may also have to set the characteristic to display key and text in the query, but it sounds like you already have done this.)
For an ODS, the settings are the same, but the path to get there is different. Go to Admin Workbench -> {ODS to be edited} -> Change -> {InfoObject to be edited} -> Right-click -> ODS-object Specific Properties. Same settings as above after this.
For a MultiProvider, I found that the settings on the InfoObject itself seemed to control the display on the Web, so I ended up setting: Display = "Key and Text"; Query Def Filter Value Selection = "Values in Master Data Table"; and Query Exe Filter Value Selection = "Values in Master Data Table". That may be a bit of overkill, but I wanted to be sure to get both key and text in all situations.
I also found that the settings for navigational attributes (e.g., 0PLANT__0REGION) for any kind of InfoProvider must be set at the InfoObject level (e.g., 0REGION), as above.
Even with all of this, I still have a couple of InfoObjects left that I can't get to display both key and text for some unknown reason.
Hope this helps...
Bob
Similar Messages
-
Using the text and not the value of a filed
Hi there,
I'm programming a pdf form using life cycle, I'm using the following script in a "SEND TO" button in order to email an XML file with the data extracted from the form:
var emailAddress = F.P1.Line.rawValue;
var veicle = F.P1.Vehicle.rawValue;
var shipper = F.P1.Shipper.rawValue;
var date = F.P1.Date.rawValue;
event.target.submitForm({cURL:"mailto:"+emailAddress+"?subject=Booking request from "+shipper+" date:"+date+" &body=Dear Sirs,Please find attached the completed PDF booking form for the following "+veicle+".",cSubmitAs:"XML",cCharset:"utf-8"});
The problem is that I would like to use in a variable the text and not the value of the F.P1.Line.raw field.
Thanks in advanceHi,
This is not the appropriate forum to post this type of question. Please post all designer related queries in LiveCYcle Designer Forum to receive better response.
From you query I understand you have a dropdown box with name as "Line". And you want to the "text" part of the selected item and not the "value" part. If it is so then do the following -
1. Write the below code in onCHange event of your dropdown box.
var ddValue = this.boundItem(xfa.event.newText);
var nodeList = this.resolveNode("#items").nodes;
var ddText = null;
for (var i = 0; i < nodeList.length; i++)
if (this.boundItem(nodeList.item(i).value) == ddValue)
ddText = nodeList.item(i).value;
break;
global.selectedtxt = ddText;
In the above code I am basically getting the "text" part of the item selected and then I am storing it in a global variable.
2.
Write the below code on click event of your button -
var emailAddress = global.selectedtxt;
Hope this helps.
Thanks,
Shivajiv. -
How do I send a group text and not have everyone else get the responses
How do I send a group text and not have everyone else get the responses? Thx
Whether or not everyone gets the response depends solely on the person responding. i.e. you send a group text and i am one of the reciepients. From here i have two options, reply to the group text (everyone gets my reply) or i could text just you on the side (by opeining a new window in messages with just you as the reciepient) and replying to just you. Theres nothing you can do, its up to the person replying whether or not they reply to the entire group or just you seperately.
-
I need to reset my security questions, but can I message support by text and not call or if you can tell me how to reset my questions here that will be great and I don't have a rescue email.
If you've forgotten the answers, you can't do that yourself. Click here, tell the iTunes Store staff that you can't call, and see what they say.
(109704) -
How to create a plugin to stamp texts and not an image into a pdf document
How to create plugin to stamp texts and not an image.. i just want it to work like the stamper plugin found in sdk sample but here i need text to be stamped instead of an image.. Is it possible? kindly give me some ideas?how to go about it.. can this be done by modfying the stamper sample code?
Thank youThis is possible, but it is a serious project, not something to be cut around from sample code. You will need to study the "graphics" and "text" chapters of the PDF specification in some detail to understand the PDF graphics model, including colour spaces, graphics state, and transformation matrixes; if working with annotations understand them and the requirement for appearance stream. There are various ways to add content to a PDF, but the PDFEdit API is probably the most accessible.
-
I am able to search only by text and not by Key in filter.
We have a variable x which has bex properties in the infoobject level to
1.display: Key and Text
2.text type: long text
3.Query def filter value selection: Only values in infoprovider
4.Query Exe filter value selection: Only posted values for navigation.
in the Query designer to the object we have the same properties for 1 and 2 as above.
On execueting the report in web, In the variable screen for x <b>we can search for both Key and text</b>. (we have two radio buttons for Key and text),
Whereas in the <b>result area for the filter</b> for x I am able to search <b>only by text and not by Key</b>. I want to search by both Key and text in filter screen.
Can u suggest suitable solution for this ASAP.I have been working on a similar problem and have found that it depends on what kind of InfoProvider you are using.
If you are using an InfoCube, the setting that seems to control this is on the maintenance screen (Admin Workbench -> {InfoProvider to be edited} -> Change -> Extras -> Structur-Specific InfoObject Properties. If you want the key and text to display on the variables screen (which you already have), make sure the 'Display' is set to "Key and Text". If you want key and text to display on the filter screen, make sure the 'F4 Query' is set to "Values in Master Data Table". (You may also have to set the characteristic to display key and text in the query, but it sounds like you already have done this.)
For an ODS, the settings are the same, but the path to get there is different. Go to Admin Workbench -> {ODS to be edited} -> Change -> {InfoObject to be edited} -> Right-click -> ODS-object Specific Properties. Same settings as above after this.
For a MultiProvider, I found that the settings on the InfoObject itself seemed to control the display on the Web, so I ended up setting: Display = "Key and Text"; Query Def Filter Value Selection = "Values in Master Data Table"; and Query Exe Filter Value Selection = "Values in Master Data Table". That may be a bit of overkill, but I wanted to be sure to get both key and text in all situations.
I also found that the settings for navigational attributes (e.g., 0PLANT__0REGION) for any kind of InfoProvider must be set at the InfoObject level (e.g., 0REGION), as above.
Even with all of this, I still have a couple of InfoObjects left that I can't get to display both key and text for some unknown reason.
Hope this helps...
Bob -
THANK YOU
"Other" is not old text and notes. Some "Other" is there for a purpose, but if it gets too big, it probably caused by corrupt data. Doing a restore of your phone is the normal route. Make sure (as I am sure you do regularly anyway) you backup everything before doing the restore.
-
How to replace null value, if column is text and not numeric in OBIEE?
Hi,
Please note that I had tried to change the null text by adding bin value for Unspecified and Unknown but this did not work for me.. not sure if I am missing out to put anything in value filter…
Thank You,
RaviCheck this function:
http://docs.oracle.com/cd/E23943_01/bi.1111/e10544/appsql.htm#CHDHJABI
Cheers
Nico
IFNULL
This function tests if an expression evaluates to a null value, and if it does, assigns the specified value to the expression.
Syntax
IFNULL(expr, value)
Where:
expr is the expression to evaluate.
value is the value to assign if the expression evaluates to a null value. -
Item text and note not transfering to PO from SRM 5.0
Hi,
We are in SRM 5.0/ECC 6.0
We have a requirement to transfer Item text and item note (Item Text/note to be printed on PO) to ECC PO. From SRM 5.0
These Item note and Item text is available in PO->Iteam->Service->service text and line text.
Please advice..
thanks,
shriFor similar kind of problem in SRM 7.0 there is SAP note implementation : Note 1424590 - Text mapping from SRM SC to backend purchase requisition.
can any one give solution for SRM 5.0 -
Item text and note not transfering to PR which is in ECC from SRM 5.0
Hi,
We are in SRM 5.0/ECC 6.0
We have a requirement to transfer Item text and item note (Item Text/note to be printed on PR(T Code ME53n)) to ECC PR. From SRM 5.0
These Item note and Item text is available in PR->Iteam->Service->service text and line text.
Item text comes from Internal note and item note from vendor text .
I posted same question in SRM Form, but as these changes has to be done by ABAPer so I am posting it again here.
Please advice..
thanks,
shri
Moderator message: no cross-posting, please.
Edited by: Thomas Zloch on Nov 14, 2011 9:17 AMFor similar kind of problem in SRM 7.0 there is SAP note implementation : Note 1424590 - Text mapping from SRM SC to backend purchase requisition.
can any one give solution for SRM 5.0 -
Deleting individual texts and not whole history
Hi
How do I delete individual texts from a person and not the whole chat history? This used to be easy on my old bold as each message seemed to be treated seperately whereas on my new curve it's more like a messenger conversation.
Is it just me being old?
Thanks
Ed
Solved!
Go to Solution.While in a specific conversation, scroll to a certain text message and delete.
I updated my curve to a new software and the SMS view is different. In order to delete a certain text, I mus view it in my conversation unlike the old software where each text is separated. Rather than in conversations now. -
Why do I have the Invite Attendee option in some calendar events and not in others?
I just entered a lot of kids' activities into my Blackberry and couldn't send them to my husband's--the option was not there. I have previously been able to do this. In events that I entered prior to tonight, the invite attendee option is still there, even if I hadn't invited anyone yet. In each event that I entered tonight, the option is not there. I recently installed the newer version of Facebook. My husband changed his facebook options (unchecked the box connecting his facebook account with the blackberry calendar application) and his invite attendee option returned. I tried the same thing, and it did not work. I also went under default services and changed the calendar (CICAL) to an email address instead of facebook, and that also did not work. I don't know if I have BES or BIS--how do I find out? I have tried checking to see if the desktop organizer is using the blackberry wireless synch as mentioned in a previous post, but that isn't an option next to calendar (only ASCII Importer/Exporter or Yahoo).
Hi and welcome to the forums!
mindianna wrote:
I just entered a lot of kids' activities into my Blackberry and couldn't send them to my husband's--the option was not there. I have previously been able to do this. In events that I entered prior to tonight, the invite attendee option is still there, even if I hadn't invited anyone yet.
Please tell me who is the email provider, Google, Yahoo, etc.
In each event that I entered tonight, the option is not there. I recently installed the newer version of Facebook. My husband changed his facebook options (unchecked the box connecting his facebook account with the blackberry calendar application) and his invite attendee option returned. I tried the same thing, and it did not work. I also went under default services and changed the calendar (CICAL) to an email address instead of facebook, and that also did not work.
Houston, we have a problem! The first version of Facebook that came out, had a bug that changed the default CICAL
to Facebook. In Default services the CMIME and CICAL should match the main email address, that is also the main
address on your PC.
Go to the calendar and once started, menu key, options. Calendar options is the name of the screen. You will see a calendar
for each email address, and one for Facebook. Highlight and click each calendar, not the number of records in each.
If you a a calendar for Device Default, let us know the records for that one as well.
I don't know if I have BES or BIS--how do I find out? I have tried checking to see if the desktop organizer is using the blackberry wireless synch as mentioned in a previous post, but that isn't an option next to calendar (only ASCII Importer/Exporter or Yahoo).
If your phone is a personal phone you setup your self, you're most likely BIS. I don't think this will be related to
the wireless sync. Please tell me what Calendar do you sync with. Outlook, Yahoo, etc.
Please go to options, advanced options, applications. Find Facebook and click on it, scroll down and tell me what
version it is. OK?
Thanks,
Bifocals
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure. -
How can I align a text object by the visible text and NOT by its bounding box?
Illustrator CS4.
I am trying to align some text to the center of the artboard. The bounding box is bigger than the text, so when I try to align it to the artboard it doesn't actually center align the artwork as I need it to. The text is needing to be aligned with another text object, so I can't just center align the text and then align to the artboard (which would eliminate the bounding box problem, I think). To make matters worse, the text I want to align has a stroke.
The only way I know to currently align the text properly is to convert it to outlines. This is what I've done, but I need something better. I want to be able to have my illustrator file that has all editable text and then be able to make a separate identical file with all text converted to outlined paths. The only thing holding me back right now is that I can't get the exact alignment while everything is still as text.The solution is to simple to believe and probably why you over looked it.
You make two text frames to exactly the height and width of the text. You position the text in the relative location and then group the text frames then center that group on the artboard.
Like such:
If you ever want to add text that should be no problem but you have to re center. -
Strange issue in ListBox - Showing the 'id' contents and not from 'Values'.
Hi,
I have created a custom table control that looks exactly like in 'Partner Tab' of Sales Order. It has Partner type, Partner, Name etc columns. For 'Partner type' column, I am calling function module 'VRM_SET_VALUES' so it shows as 'Sold-to party' , Ship-to Party' instead of SP, WE etc. This works fine.
However, before I display this table control, in PBO, I am populating Partner Type and partner # and passing it to table control columns. It should show like 'Sold-To party' in 'Partner type' column and '0000014' in 'Partner' column. I see Partner # populated correctly, however, instead of showing 'Sold-To party' in 'Partner type' column , it is showing like SP, which is the 'id' value from function module 'VRM_SET_VALUES' . What should I do so it shows the description(content from 'Values' and
not from 'id' ) ?
NiranjanThanks for the response.
I had tried converting to text and pass from Internal table to Table control on screen in PBO, however, the width of the column is only 2 characters, so it will display just 2 characters text.
I am wondering how SAP is able to code to show TEXT in 'Partner tab' in Sales Order. I have pasted the contents below from 'Partner tab' of sales order. I debugged the code in program SAPLV09C and screen 1000 and somehow they are populating the text as shown in 'PARTNER FUNCTION' below instead of codes like SH, SP. If I press F1 on field, I see SDPARTNERLIST-PARVW as the field name and the width is 2 characters.
PARTNER FUNCTION PARTNER # NAME
Sold-to party 79269 XYZ CONSTRUCTION
Foreman1 2023 KURT
Bill-to party 79269 XYZ CONSTRUCTION
Payer 79269 XYZ CONSTRUCTION
Regional Salesman 430 MARK
Ship-to party 219763 S.A.G. PROPERTIES
Cont Person >Bill-To 80296 DENNIS
Cont Person >Sold-To 80296 DENNIS
Cont Person >Payer 80296 DENNIS
Cont Person >Ship-To 261628 DENNIS -
Order Of Null and Not Null Values while table creation
We have to create a table with 10 fields .5 of them are Null and Not Null. Now my question what should be the order of fileds??.Means Null Fields will come first or Not Null.
The only reason I can think of having the NULL columns at the end is storage space.
To conserve space, a null in a column only stores the column length (zero). Oracle
does not store data for the null column. Also, for trailing null columns, Oracle does
not even store the column length.
Maybe you are looking for
-
i set up my new computer using the apple ID i always use, and then later migrated all my files from my old mac book to the same new one, but under a different user (same apple ID). how do i consolidate the two users on my new mac book?
-
Moving snow leopard data from from old iMac time machine to Yosemite
I have a pre-2007 17" iMac running 10.6.8 Snow Leopard. Time Machine is used to backup this machine. I plan to buy a new iMac or Mac Mini with Yosemite, and would like to move some of the data from the old iMac to the new Mac machine. Can I connect
-
Hi together, anyone has an idea how to print out an instrument score in a readable format? the problem is that if id like to print, the fonts of the printout is so small. even on the preview. any idea how to adjust the score font in garageband? i am
-
Download of Bella update stops when it's almost ov...
Hello When updating Nokia C7 comes at downloading updates to the interruption of transfer just before the end. It also changes the size of the required transfer when restarting updates. Once the size its 8 mb than 230 mb and so on. Then writes 'serv
-
Lr4 version 4.4.1 will not recognize nef files from my nikon d610? why?
I downloaded the latest version of LR4 (4.4.1) and downloaded the latest raw converter as well and it still will not recognize the files. I updated PSE12 with the latest raw converter and that opens fine.