HTMLDB_ITEM.SELECT_LIST_FROM_QUERY looses commas from option texts
Hi,
I used HTMLDB_ITEM.SELECT_LIST_FROM_QUERY on my custom tabular form. Some of the option display values selected from my table have commas (',') in them, but commas won't get displayed in the resulting select menu, nor are they seen in html source. In the html source however I see that they are probably replaced with spaces (' '). Is it a bug and is there a workaround? Which symbols are replaced in the DISPLAY_VALUE and thus should be avoided (if there is no workaround I should include this information in the help text)?
Kaja Trees
Yet in my application there are two regions side-by-side on my test page, one with a query of
select htmldb_item.SELECT_LIST_FROM_QUERY( 10, 0
, ' select NAME as DISPLAY_VALUE
, ID as RETURN_VALUE
from OBJ_TPL_SELECT_OPTION'
, ' class="search-table-input-long" ' -- make it longer
, 'YES' -- show empty choice
, '0' -- empty choice value
, '...' ) -- empty choice display
as sel
from dual
which results in a html source of:
<tr><td class="table-work-overview-firstrow">SEL</td></tr>
<tr><td class="table-people-overview-white"><select name="f10" class="search-table-input-long" ><option value="0">...<option value="7059909" >1mbit/s<option value="7059910" >NAT DHCP pordi suunamine</select></td></tr>
and the other with a query of:
select NAME as DISPLAY_VALUE
, ID as RETURN_VALUE
from OBJ_TPL_SELECT_OPTION
resulting in following html source:
<tr><td class="table-work-overview-firstrow">DISPLAY_VALUE</td><td class="table-work-overview-firstrow">RETURN_VALUE</td></tr>
<tr><td class="table-people-overview-white">1mbit/s</td>
<td class="table-people-overview-white">7059909</td>
</tr><tr><td class="table-people-overview-white">NAT, DHCP, pordi suunamine</td>
<td class="table-people-overview-white">7059910</td>
</tr>
Where should I look for the reason of no commas in the first result?
Confused,
Kaja
Similar Messages
-
I deleted a contact, but they still show up in my text options to send. I would like to delete the contact from my texts too.
No don't restore your iphone. I've done that several times & it has never worked. -I still have deleted contacts in my iphone texts. *However if you do restore it you will not lose all your data, pics, text messages etc if you backup in iCloud. It restores back to original phone. Very nice :). Anyhowwww....
I JUST figured it out!! :))). Remove the contact from recents.
Start a text. You should see the deleted contact. All the way to the right of the name is a symbol. The symbol is a circle with "i" in the middle. Click that symbol then in red lettering click "remove from recents". -
when i start typing in address bare it start to search or predict the site or texts and i unchecked it from options but it still working
i dont like it i want to cancel this optionAre you using this setting?
* Firefox (Tools) > Options > Privacy > Location Bar: When using the location bar, suggest: Nothing
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
* Don't make any changes on the Safe mode start window.
* https://support.mozilla.com/kb/Safe+Mode
See also:
* http://kb.mozillazine.org/Resetting_preferences -
HTMLDB_ITEM.SELECT_LIST_FROM_QUERY - not found error
Hi!
I am trying to use HTMLDB_ITEM.SELECT_LIST_FROM_QUERY in a page source and getting the error message: ORA-06550: line 2, column 4: PLS-00221: 'SELECT_LIST_FROM_QUERY' is not a procedure or is undefined.
This is HTMLDB 2.0 on Oracle 10.2.0.1.0 on Windows 2000.
All help is appreciated.
Thanks!
Dave VenusChet, I am still having trouble making this work. Let me cover each of the fields in the form and lets see where I am going wrong...... Sections with only a header have the default values.
Name Section:
Page: 4
Name: P4_GROUP_ID
Display As: Select List
Displayed Section:
Sequence: 20
Region:
Begin on new line: YES Field: YES ColSPan: 1 RowSpan: 1
Label Section:
Element Section:
Source Section:
Source Used: Only when current value is session state is null
Source Type: Static Assignment (value equals source attribute)
Source Value or Expression: P4_GROUP_ID
Post Calculation Computation:
Format Mask:
Default Section:
List of Values Section:
Named LOV: Group_Names
Display Extra Values: No
Columns: 1
Display Null: Yess
Null Display Value: -- Select Group --
List of Values definition: select group_name display, group_id return
from #OWNER#.ittp_group
ordeer by 1
Security Section:
Conditions Section:
Condition Type: - Item Not Conditional
Read Only Section:
Read Only Condition Type: Value of Item in Expression 1 is NOT NULL
Expression 1: P4_GROUP_ID
Expression 2:
Help Text Section:
Configuration Section:
Comments Section:
I really appreciate your time, patience and help!
Dave Venus -
I have created a manual tabular form using HTMLDB_ITEM.select_list_from_query as on of the fields. it queries a look up table for the values.
for eg. if the field is 'PRIORITY' the list will show 'High', 'Medium', Low.
I need to color code it as Red, Orange, Yellow resp.
HTMLDB_ITEM.SELECT_LIST_FROM_QUERY (12,PRIORITY,'SELECT
INITCAP(lookup_value)
,lookup_value r
FROM ofss_lookup
WHERE lookup_name = ''PRIORITY''
ORDER BY lookup_sequence') "PRIORITY"
that is When the user is inserting a new record he chooses 'High' , in the drop down list the Background color for the word 'High' is red.
also the existing records queried will also display the color based on the data in the field.
How can this be done?
How do i pass the HTML parametersHi,
You can only update the background colour of the OPTION tag itself.
What you could do, is something like:
SELECT ENAME d, EMPNO || '" style="color:yellow; background-color:' || CASE WHEN ENAME LIKE 'A%' THEN 'red' ELSE 'blue' END || '"' r
FROM EMP
ORDER BY 1
{code}
This example sets the font colour to yellow and the background colour to either red or blue depending on the ENAME value - obviously, adjust as required.
Andy -
Removing Comma (,) from Year Formatting
Hello,
I'm attempting to generate a text string that corresponds to a given year. However, when I convert to text from the number format, the result includes a comma:
the date's year = Text(ExtractYear(today's date)) -> "2,011"
1. Does anyone know how to prevent the comma in the text attribute, so that I'll get "2011" rather than "2,011"?
2. Similarly, I'd also like to know how to format the decision report so that the number variable (the output of 'ExtractYear') also does not appear with a comma.
Thanks in advance,
- PatrickThis has been raised internally as OPAD-4226, so we are looking at it for a future release.
This is a formatting issue - ie. all numbers are formatted as if they are actual numbers, but of course years have their own convention. A custom format (eg. in Web Determinations) could format without the comma but it would apply to all numeric attributes. Custom code could also be used to apply the non-comma format only to certain attributes you specify, but it's not an out-of-the-box option. -
Populate drop-down list from multiple text fields.
Just to begin, I am brand new to this application and brand new to coding in general. Anyways, this is what I am trying to accomplish. I need to populate a drop-down list from multiple text fields. I am able to populate one item using this in the calculate event:
TextField1.rawValue
After I type text in TextField1 and hit enter, it displays the text in the drop-down list. I need to do this but with more than just one text field to populate more options for the drop-down list. I will also need to do something similar with populating a drop-down list from selections made in multiple other drop-down lists.
Thanks for any help you can give me.Thank you for your suggestion Geo Kaiser. With that, I was able to populate my drop-down lists, but now when I select an option from the drop-down list, the selection dissapears. The selection will appear briefly in the box but then dissapears although my drop-down list options remain there. Here is the code I am using for my text field to drop-down list:
DropDownList1.clearItems()
DropDownList1.addItem(TextField1)
DropDownList1.addItem(TextField2)
And here is my code for my drop-down list to populate another drop-down list:
DropDownList3.clearItems()
DropDownList3.addItem(DropDownList1)
DropDownList3.additem(DropDownList2)
Thanks again for your help. By the way, I am using Adobe Designer 7.0. -
How do i save a picture to the camera roll from a text message in ios 7
I am attempting to save a picture from a text message to my camera roll. However when i hold the picture the options are "copy/More" More gives the options to delete or forward via text message. And if i press copy it only copies it to be pasted. In the past i was given several options to send the pic via email/text/save to camera roll/drop box etc.
Please advise as to how i can save pictures from my text to the camera roll.
Thank you!If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore. -
i need to delete (or replace them with white space) a few lines from a text file. I have a text file with first few lines & last few lines containing "<"or ">". I need to delete/replace with white space, the entire line. i need to do this urgently
Could some one please tell me how to do this?the file can be of size 8MB or more. i get this file
every week from a third party. So the size is not
constant. I need to remove/replace with white space,
the fist & last few lines and the rest is comma
seperated values which i need to load to database
using sqlldr. But still not sure abt how to remove
the first few lines.
i need to read this file, replace the lines as i read
them and write the replaced string back to the file &
then load the rest of lines to database.8 MByte is fairly small. Read the file a line at a time and copy to a new file only the lines you want. Should take no more than a second or so.
P.S. It will probably be a mistake if you try to edit the original file in place. -
I would like to plott data from a text file in the same way as a media player does from a video file. I’m not sure how to create the pointer slide function. The vi could look something like the attached jpg.
Please, can some one help me?
Martin
Attachments:
Plotting from a text file like a media player example.jpg 61 KBHI Martin,
i am not realy sure what you want!?!?
i think you want to display only a part of the values you read from XYZ
so what you can do:
write all the values in an array.
the size of the array is the max. value of the slide bar
now you can select a part of the array (e.g. values from 100 to 200) and display this with a graph
the other option is to use the history function of the graphes
regards
timo -
Passing parameters to the SQL Report from a text box in jsp
Hi All,
I want to dynamically generate the SQL Server Reporting Services by passing the query parameter from the url like this :
"http://localhost/Reports/Pages/Report.aspx?ItemPath=%2fDashboardReports%2fHorse_Profile&rs:Command=Render&rs:HorseID=117415"
Where horseid id my parameter which is needed by report to generate the required data.
This query paramter value is picked from the text box on my jsp page.
But my problem is when i go to this url it says the message
"The 'HorseID' parameter is missing a value ".
I have done a lot of search on this topic. Everybody says that we can pass the values from the url like i am using. But still its not working.
Any body has any idea please give me some idea.
Regards.If you receive a picture via email or text message in ios 7 and when you press the action icon to save the picture and you do not get the option to save to your camera roll. Press and hold on the the image and you will get an overlay pop up to save the image. I have no idea why some attachments don't have option in action menu to save in the camera roll but by experimentation and earned frustration I found the above to work in certain situations.
Be well and have fun and feel rewarded in your frustrations. For without challenges, life would be an utter bore. -
Reading in an array from a text file
I'm trying to use a text file to load in some configuratin
data (using actionscript 3) I have it working ok for simple stuff
like gamename=Chess&gamescore=100 , etc... but some of the data
needs to be in an array. Can someone please point me in the right
direction to how I can read in an array from a text file?
Thanks!the easiest way is to create a string with the (soon-to-be)
array elements separated by a delimiter (like a double comma). read
in your string, then use the split() method of strings to split
your string into an array. -
How can i delete a UserName from a text file using Strings or io.
hi i m trainee
i have been assigned to make java program which deletes a UserName and
his Passwor from a Text File
i m unable to do it using the code below
plz help
do reply
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java .applet.*;
import java.io.*;
class Del extends JFrame implements ActionListener
String s2;
JTextField CWDMUserDText = new JTextField();
JButton CWDMSecDelButton = new JButton("DELETE");
JLabel CWDMUserLabel = new JLabel("USER NAME");
JPasswordField CWDMPassDText = new JPasswordField();
JLabel CWDMPassLabel = new JLabel("PASSWORD");
//String user,pass;
/* CONSTRUCTOR*/
Del()
Container contentPane=getContentPane();
contentPane.setLayout(null);
setLocation(400,200);
contentPane.add(CWDMUserDText);
contentPane.add(CWDMSecDelButton);
contentPane.add(CWDMUserLabel);
contentPane.add(CWDMPassDText);
contentPane.add(CWDMPassLabel);
CWDMUserLabel.setBounds(20,70,100,25);
CWDMPassLabel.setBounds(20,100,100,25);
CWDMUserDText.setBounds(150,70,100,25);
CWDMPassDText.setBounds(150,100,100,25);
CWDMSecDelButton.setBounds(80,135,100,25);
CWDMUserDText.addActionListener(this);
CWDMPassDText.addActionListener(this);
CWDMSecDelButton.addActionListener(this);
contentPane.setBackground(Color.CYAN);
setVisible(true);
setDefaultCloseOperation(EXIT_ON_CLOSE);
public void actionPerformed(ActionEvent ae)
if(ae.getSource()==CWDMSecDelButton)
// user = CWDMUserDText.getText();
// pass = CWDMPassDText.getText();
// showarr();
s2 = CWDMUserDText.getText();
CWDMUserDText.setText("");
CWDMPassDText.setText("");
DelUser(s2);
public static void main(String args[])
Del myframe1= new Del();
myframe1.setSize(300,200);
myframe1.setVisible(true);
public void DelUser(String s)
//int a;
try
FileReader fr = new FileReader("file.txt");
BufferedReader br = new BufferedReader(fr);
String s1;
int a;
int len = s.length();
System.out.println(len);
//s2 = CWDMUserDText.getText();
while ((s1=br.readLine()) !=null)
if((a=s1.indexOf(s))>0 && (a=s1.indexOf(s))!=0)
System.out.println(a);
fr.close();
catch(FileNotFoundException e)
System.out.println("exception occured");
catch(IOException e)
System.out.println("io");
}Some tips:
1) If you are adding or deleting stuff from a text file you need to write a new, modified file and then, optionally, do something like:
rename the old file to whatever.bak or the like.
rename the new file to the old.
2) Don't depend on System.out so much on a GUI application. For example if you get an exception use javax.swing.JOptionPane to display an alert (and show the message from the exception). You can write the stack trace to System.out if you want.
3) Don't muck about with calculating bounds for screen objects, let a layout manager sort it out. I like BoxLayoutManager for most things like this.
4) For bonus points do your IO in a separate Thread. Generally you don't want anything happening in an actionPerformed method which significantly delays it's return. The method should launch a new Thread to do the job, and disable the button until the Thread finishes. -
How can I use Automator to extract specific Data from a text file?
I have several hundred text files that contain a bunch of information. I only need six values from each file and ideally I need them as columns in an excel file.
How can I use Automator to extract specific Data from the text files and either create a new text file or excel file with the info? I have looked all over but can't find a solution. If anyone could please help I would be eternally grateful!!! If there is another, better solution than automator, please let me know!
Example of File Contents:
Link Time =
DD/MMM/YYYY
Random
Text
161 179
bytes of CODE memory (+ 68 range fill )
16 789
bytes of DATA memory (+ 59 absolute )
1 875
bytes of XDATA memory (+ 1 855 absolute )
90 783
bytes of FARCODE memory
What I would like to have as a final file:
EXCEL COLUMN1
Column 2
Column3
Column4
Column5
Column6
MM/DD/YYYY
filename1
161179
16789
1875
90783
MM/DD/YYYY
filename2
xxxxxx
xxxxx
xxxx
xxxxx
MM/DD/YYYY
filename3
xxxxxx
xxxxx
xxxx
xxxxx
Is this possible? I can't imagine having to go through each and every file one by one. Please help!!!Hello
You may try the following AppleScript script. It will ask you to choose a root folder where to start searching for *.map files and then create a CSV file named "out.csv" on desktop which you may import to Excel.
set f to (choose folder with prompt "Choose the root folder to start searching")'s POSIX path
if f ends with "/" then set f to f's text 1 thru -2
do shell script "/usr/bin/perl -CSDA -w <<'EOF' - " & f's quoted form & " > ~/Desktop/out.csv
use strict;
use open IN => ':crlf';
chdir $ARGV[0] or die qq($!);
local $/ = qq(\\0);
my @ff = map {chomp; $_} qx(find . -type f -iname '*.map' -print0);
local $/ = qq(\\n);
# CSV spec
# - record separator is CRLF
# - field separator is comma
# - every field is quoted
# - text encoding is UTF-8
local $\\ = qq(\\015\\012); # CRLF
local $, = qq(,); # COMMA
# print column header row
my @dd = ('column 1', 'column 2', 'column 3', 'column 4', 'column 5', 'column 6');
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
# print data row per each file
while (@ff) {
my $f = shift @ff; # file path
if ( ! open(IN, '<', $f) ) {
warn qq(Failed to open $f: $!);
next;
$f =~ s%^.*/%%og; # file name
@dd = ('', $f, '', '', '', '');
while (<IN>) {
chomp;
$dd[0] = \"$2/$1/$3\" if m%Link Time\\s+=\\s+([0-9]{2})/([0-9]{2})/([0-9]{4})%o;
($dd[2] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of CODE\\s/o;
($dd[3] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of DATA\\s/o;
($dd[4] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of XDATA\\s/o;
($dd[5] = $1) =~ s/ //g if m/([0-9 ]+)\\s+bytes of FARCODE\\s/o;
last unless grep { /^$/ } @dd;
close IN;
print map { s/\"/\"\"/og; qq(\").$_.qq(\"); } @dd;
EOF
Hope this may help,
H -
How to do import data from the text file into the mathscript window?
Could anyone tell me how to do import data from text file into mathscript window for labview 8?
MathScript Window openned, File, Load Data - it has options: custom pattern (*.mlv) or all files.
ThanksHi Milan,
Prior to loading data in Mathscript Window , you have to save the data from the Mathscript window (the default extension of the file is .mlv but you can choose any extension). This means that you cannot load data from a text file that was not created using the Mathscript window.
Please let me know if you have any further questions regarding this issue.
Regards,
Ankita
Maybe you are looking for
-
2K8 - Best practice for setting the DNS server list on a DC/DNS server for an interface
We have been referencing the article "DNS: DNS servers on <adapter name> should include their own IP addresses on their interface lists of DNS servers" http://technet.microsoft.com/en-us/library/dd378900%28WS.10%29.aspx but there are some parts that
-
I want to add site setting (wheel) functionality on on master page and hide ribbon,so i added following code/HTML on my master page. This code is working when page is published /check in,but its not working(i mean popup/dropdown is not coming when cl
-
Display issues (application placement and background) when waking from lcd sleep
I hve three DVI displays connected to my Mac Pro running Lion. I regularly put my displays to sleep using a hot corner to lock my workstation. This was not a problem in Leopard or Snow Leopard; however, in Lion I have noticed several issues upon wa
-
Hiya! I just got this refurbished MB not even a week ago after my other one went keput. It started up fine, and ran well wih no problems whatsoever. I loaded my last time machine entry(?) and still all seemed to be going well. Then I did FileVault. E
-
Having problem in installing FileUpload Demo
Hi! , We r trying to install and run the file upload utility demo. We are using Form6i with Patch 9. and 9iAS release 1 using Forms Listener. We have followed all the steps written in the document but when trying to call the run file using http://192