HELP! Need help generating TEXT-ONLY portal page...

Text Only Portal Question:
PLATFORM:
=================================================================
Sun Solaris (5.2 if memory serves) for db and mid-tier, running
8.1.7 DB and 3.0.9 (1.0.2.2) portal.
THE NEED:
=================================================================
I need to display text only portal pages. Some of the more
detailed concerns at this point are below. Also, I've had an open
tar on Metalink for about two weeks, and after research from
their end has resulted in no help.
THE ISSUES (so far):
=================================================================
IMAGES:
If an anchor [A HREF=...] tag uses an image as it's "text", I
need to strip out the ALT= text to show inside the anchor. If no
ALT text is available, then I would like to show the image name
as a default.
For example:
<img src=home.gif
alt=Home>
should display as:
Home
FORMS:
How do I get the resulting page from a form (which include the
login inputs and submit button, search box, advanced search page,
etc.) to be displayed by the text only page?
For example:
When a form is called, the <FORM> elements are as follows:
METHOD=GET or POST
ACTION=url (relative or absolute) to the script.
In this case, the action value is:
ACTION=/servlet/page?
pageid=6&dad=portal30&_schema=PORTAL30.
This calls the advanced search API.
I would expect that to redirect the browser back to some
text-only version, the ACTION= element would have to be changed
to be something like:
ACTION=[pathscraper]?/servlet/page?
pageid=6&dad=portal30&_schema=PORTAL30
REDIRECTION:
What happens when portal pages redirect internally? How do you
get back to the text-only page?
For example:
The login link on the standard Oracle Portal home page flips
from url to url to get to the actual login page. Our
implementation of Oracle portal goes from
[DOMAIN]/pls/portal30_sso/portal30_sso.wwsso_app_admin.ls_login
to [domain]/pls/portal30_sso/portal30_sso.login_page.
Since this is standard Oracle redirection, how can it be
intercepted so the portal30_sso.login_page can be presented as
text only?
TRIED SO FAR:
=================================================================
I've written a socket/text scraper in Perl, running it from a web
server. The problems mentioned above are really causing problems,
plus the whole cookie thing. Since Oracle Portal tries to push a
cookie to the client, when the client is another UNIX server,
the cookie thing doesn't work.
POSSIBLE OTHER SOLUTIONS:
=================================================================
Something...anything. I've tried to think of some method to
create some sort of PL/SQL procedure to catch the content then
strip out the HTML calls.
An Applet to do the same thing, but on the client side, but
since time is an issue, coding a complete Java applet isn't
really an option.
THE CONCLUSION:
=================================================================
HELP! I need some help. This is for a client that is government
funded, and to meet Section 508 (part of the Americans with
Disabilities Act that states web sites and applications must be
made accessible. A text-only page is one of the requirements for
an accessible page.
Thanks,
Ryan Stefani
ps: feel free to contact me via [email protected] or
[email protected]

Use Find/Change and the GREP tab.
Search for .+ and set the Find formatting to find the charcteristics you want.
What will you do with this text once found? You'll need something to "change" to, either new text or Change Formatting options...

Similar Messages

  • Need help need help exporting epub to iTunes Producer

    Need help need help exporting epub to iTunes Producer. Nothing will load only get that little spinning wheel.

    It's not necessary to post a second time. I'm locking this version so others may reply at the first thread you created:
    Hi I created a EPUB with indesign cc and I'm trying to submitted it to iTunes Producer

  • Javascript array help needed to generate narrative from checkboxes

    For context...  the user will indicate symptoms in cardiovascular section, selecting "deny all", if none of the symptoms apply.  The narrative sub-form needs to processes diagnosis sub-form and generate text that explains the symptoms in a narrative form.  For example, if the user selects "deny all" in the cardiovascular section, the Cardiovascular System Review field would have:  "The patient denies:  High Blood Pressure, Low Blood Pressure.  The logic associated with the narrative needs to account for "deny all" and all the variations of selections.
    I have what I think is a pretty good start on the logic, but would like some help with the following:
    1) loading selected fields into the cv_1s array
    2) loading fields not selected into the cv_0s array
    3) generating the narrative
    See "phr.narrative.cv_nar::calculate - (JavaScript, client)" for the coding I've done thus far.  Feel free to comment on any efficiency opportunities you see.  I have a SAS programming background, but I'm new to Javascript.  Thanks...
    Rob

    Hi Rob,
    One approach would be to give your checkboxes the same name so they can then be referenced as a group and use the caption as the source of your text, so you shouldn't have to duplicate the text and will make it easier to add more later.
    Attached is a sample doing that.
    Hope it helps.
    Bruce

  • Help Needed Urgently !! weblogic portal , webflow, cookies

    Hello!!
    I am new to java related technology, I need help asap,
    Using webflow, I need to make a portlet within a portal with 3 JSP
    pages (login.jsp,welcome.jsp,logout.jsp)
    Login.jsp
    It should have form with 2 textboxes (Username & password) and a
    submit button
    Upon clicking submit button a cookie for username and password should
    be created and the displayed in "welcome.jsp" page.
    welcome.jsp
    Everytime his page is called by the browser it should read the
    username and password from the cookie and display.
    It should have a Button upon clicking which the cookie containing the
    username and password is deleted.
    logout.jsp
    This page should confirm the deletion of cookie and should have a link
    to login.jsp page
    NOTE: PLEASE I NEED THE ENTIRE CODE ASAP.

    you know what ... i need the entire money ... all 3 million $ for that job bevore
    I will write a line :)
    [email protected] wrote:
    Hello!!
    I am new to java related technology, I need help asap,
    Using webflow, I need to make a portlet within a portal with 3 JSP
    pages (login.jsp,welcome.jsp,logout.jsp)
    Login.jsp
    It should have form with 2 textboxes (Username & password) and a
    submit button
    Upon clicking submit button a cookie for username and password should
    be created and the displayed in "welcome.jsp" page.
    welcome.jsp
    Everytime his page is called by the browser it should read the
    username and password from the cookie and display.
    It should have a Button upon clicking which the cookie containing the
    username and password is deleted.
    logout.jsp
    This page should confirm the deletion of cookie and should have a link
    to login.jsp page
    NOTE: PLEASE I NEED THE ENTIRE CODE ASAP.

  • Help :) Indesign selecting specific text only

    I need a simple way to select all the txt with a specific font size. Ex; i want to select all the 20px fonts. Please i really need help for this one.. Thanks for Advance

    Use Find/Change and the GREP tab.
    Search for .+ and set the Find formatting to find the charcteristics you want.
    What will you do with this text once found? You'll need something to "change" to, either new text or Change Formatting options...

  • Search only portal pages

    I want to search on Pages, not iviews/worksets. Any ideas please?

    Hi Ashish
    In http://help.sap.com/saphelp_nw70/helpdata/en/cc/f4e77ddef1244380b06fee5f8b892a/frameset.htm you find the relevant guidelines.
    If you dont want the parameter reflected in the URL, you will need to create a search options set and use it in the seach iview that should be used for portal page search.
    So in the entry "Predefined Properties" of the search options set, you will need to enter "resourcetype(value=http://sap.com/xmlns/pcd/app/page/default)" if you want the search to be limited to resources defined as pages. Leave out /default if you dont want the end user to be able to change the filter.
    If you want the parameter reflected in the URL, you can information about how to do it here: https://www.sdn.sap.com/irj/scn/thread?messageID=280371
    Best regards,
    Martin Søgaard

  • Need Help Need Help PLZ PLZ

    my problem is that i have made a calendar by using jtable and i can't highlight or put any sign to keep track on date, but the biggest problem is that i have to submit this project after two days, so i will appreciate any help or tips from you. Here is my code:
    CODE
    /*Contents of CalendarProgran.class */
    //Import packages
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    public class CalendarProgram{
    static JLabel lblMonth, lblYear;
    static JButton btnPrev, btnNext;
    static JTable tblCalendar;
    static JComboBox cmbYear;
    static JFrame frmMain;
    static Container pane;
    static DefaultTableModel mtblCalendar; //Table model
    static JScrollPane stblCalendar; //The scrollpane
    static JPanel pnlCalendar;
    static int realYear, realMonth, currentYear, currentMonth;
    public static void main (String args[]){
    //Look and feel
    try {UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());}
    catch (ClassNotFoundException e) {}
    catch (InstantiationException e) {}
    catch (IllegalAccessException e) {}
    catch (UnsupportedLookAndFeelException e) {}
    //Prepare frame
    frmMain = new JFrame ("Gestionnaire de clients"); //Create frame
    frmMain.setSize(330, 375); //Set size to 400x400 pixels
    pane = frmMain.getContentPane(); //Get content pane
    pane.setLayout(null); //Apply null layout
    frmMain.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Close when X is clicked
    //Create controls
    lblMonth = new JLabel ("January");
    lblYear = new JLabel ("Change year:");
    cmbYear = new JComboBox();
    btnPrev = new JButton ("<<");
    btnNext = new JButton (">>");
    mtblCalendar = new DefaultTableModel(){public boolean isCellEditable(int rowIndex, int mColIndex){return false;}};
    tblCalendar = new JTable(mtblCalendar);
    stblCalendar = new JScrollPane(tblCalendar);
    pnlCalendar = new JPanel(null);
    //Set border
    pnlCalendar.setBorder(BorderFactory.createTitledBorder("Calendar"));
    //Register action listeners
    btnPrev.addActionListener(new btnPrev_Action());
    btnNext.addActionListener(new btnNext_Action());
    cmbYear.addActionListener(new cmbYear_Action());
    //Add controls to pane
    pane.add(pnlCalendar);
    pnlCalendar.add(lblMonth);
    pnlCalendar.add(lblYear);
    pnlCalendar.add(cmbYear);
    pnlCalendar.add(btnPrev);
    pnlCalendar.add(btnNext);
    pnlCalendar.add(stblCalendar);
    //Set bounds
    pnlCalendar.setBounds(0, 0, 320, 335);
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 100, 25);
    lblYear.setBounds(10, 305, 80, 20);
    cmbYear.setBounds(230, 305, 80, 20);
    btnPrev.setBounds(10, 25, 50, 25);
    btnNext.setBounds(260, 25, 50, 25);
    stblCalendar.setBounds(10, 50, 300, 250);
    //Make frame visible
    frmMain.setResizable(false);
    frmMain.setVisible(true);
    //Get real month/year
    GregorianCalendar cal = new GregorianCalendar(); //Create calendar
    realMonth = cal.get(GregorianCalendar.MONTH); //Get month
    realYear = cal.get(GregorianCalendar.YEAR); //Get year
    currentMonth = realMonth; //Match month and year
    currentYear = realYear;
    //Add headers
    String[] headers = {"Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"}; //All headers
    for (int i=0; i<7; i++){
    mtblCalendar.addColumn(headers);
    tblCalendar.getParent().setBackground(tblCalendar.getBackground()); //Set background
    //No resize/reorder
    tblCalendar.getTableHeader().setResizingAllowed(false);
    tblCalendar.getTableHeader().setReorderingAllowed(false);
    //Single cell selection
    tblCalendar.setColumnSelectionAllowed(true);
    tblCalendar.setRowSelectionAllowed(true);
    tblCalendar.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    //Set row/column count
    tblCalendar.setRowHeight(38);
    mtblCalendar.setColumnCount(7);
    mtblCalendar.setRowCount(6);
    //Populate table
    for (int i=realYear-100; i<=realYear+100; i++){
    cmbYear.addItem(String.valueOf(i));
    //Refresh calendar
    refreshCalendar (realMonth, realYear); //Refresh calendar
    public static void refreshCalendar(int month, int year){
    //Variables
    String[] months = {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"};
    int nod, som; //Number Of Days, Start Of Month
    //Allow/disallow buttons
    btnPrev.setEnabled(true);
    btnNext.setEnabled(true);
    if (month == 0 && year <= realYear-10){btnPrev.setEnabled(false);} //Too early
    if (month == 11 && year >= realYear+100){btnNext.setEnabled(false);} //Too late
    lblMonth.setText(months[month]); //Refresh the month label (at the top)
    lblMonth.setBounds(160-lblMonth.getPreferredSize().width/2, 25, 180, 25); //Re-align label with calendar
    cmbYear.setSelectedItem(String.valueOf(year)); //Select the correct year in the combo box
    //Clear table
    for (int i=0; i<6; i++){
    for (int j=0; j<7; j++){
    mtblCalendar.setValueAt(null, i, j);
    //Get first day of month and number of days
    GregorianCalendar cal = new GregorianCalendar(year, month, 1);
    nod = cal.getActualMaximum(GregorianCalendar.DAY_OF_MONTH);
    som = cal.get(GregorianCalendar.DAY_OF_WEEK);
    //Draw calendar
    for (int i=1; i<=nod; i++){
    int row = new Integer((i+som-2)/7);
    int column = (i+som-2)%7;
    mtblCalendar.setValueAt(i, row, column);
    //Apply renderers
    tblCalendar.setDefaultRenderer(tblCalendar.getColumnClass(0), new tblCalendarRenderer());
    static class tblCalendarRenderer extends DefaultTableCellRenderer{
    public Component getTableCellRendererComponent (JTable table, Object value, boolean selected, boolean focused, int row, int column){
    if (column == 0 || column == 6){
    setBackground(new Color(255, 220, 220));
    else{
    setBackground(new Color(255, 255, 255));
    super.getTableCellRendererComponent(table, value, selected, focused, row, column);
    return this;
    static class btnPrev_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 0){ //Back one year
    currentMonth = 11;
    currentYear -= 1;
    else{ //Back one month
    currentMonth -= 1;
    refreshCalendar(currentMonth, currentYear);
    static class btnNext_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (currentMonth == 11){ //Foward one year
    currentMonth = 0;
    currentYear += 1;
    else{ //Foward one month
    currentMonth += 1;
    refreshCalendar(currentMonth, currentYear);
    static class cmbYear_Action implements ActionListener{
    public void actionPerformed (ActionEvent e){
    if (cmbYear.getSelectedItem() != null){
    String b = cmbYear.getSelectedItem().toString();
    currentYear = Integer.parseInt(b);
    refreshCalendar(currentMonth, currentYear);

    Welcome to the forum. You will need to learn a couple things if you want to receive help and not get flamed to death:
    1) All code needs to be posted within code tags. You can read up on them here:
    http://forum.java.sun.com/help.jspa?sec=formatting
    You want to make it as easy as possible for the volunteers here to help you. That means making your code readable.
    2) Do not put "urgent" "need help" "hurry please" in your posts if you are smart. Definitely don't put them in the header of the post. The urgency is yours, not ours. Putting that stuff in there only turns people off. If you have a problem deemed worthwhile by the volunteers here, if you have put thought into your post so you make it easy as possible for others to help you, and if you show some effort on your own, you are almost guaranteed to get timely help.
    3) List all error messages completely.
    4) Keep all necessary code, get rid of all unnecessary code. Your code should be compilable on its own, but it should not contain anything that isn't necessary for demonstrating your problem.
    5) Specifics:
    Why are you throwing out all those exceptions?
    Why is everything in one big huge GUI class? Break your code down into functional units. Make sure the logic works in a non-GUI way, THEN add a GUI class.
    Why the huge main method? The main should be short and sweet.
    Why the static inner classes? Do you know what is the difference between static inner classes and non-static inner classes?
    Why all the static variables anyway? You are doing procedural programming with an OOP language. You should use OOP if you can with an OOP language.
    Sorry, but this code looks like it was thrown together in a big hurry. I think that you have a lot of work to do. Good luck!

  • Help needed in passing parameters between custom pages

    Hi,
    Thanks in advance for your help gurus. I am developing 2 new pages and both should have link between them. WHen I click a button on page A it will navigate to page B, I am passing 2 parameters to page B. Page B is rendered with the help of values passed. Page B has 2 OAMessageLovInput Bean for which I am setting their values based on the values passed using
    OAMessageTextInputBean custBean = (OAMessageTextInputBean)webBean.findIndexedChildRecursive("CustID");
    custBean.setText(pageContext.getParameter("customerid"));
    Everything works great till now. Now I want to change the customer id on page B using the LOV ie I select a new customer and I tab out of the field, still the customer id is not changed, it is set to the old one only to which the bean is set to.
    What should I do get the new selected customer id to be populated on the LOV fields.
    Thanks,
    newbie

    newbie,
    You really do not need to explicitly set the customer Id through code. Just create a new LOV Mapping and make its return value to the MessageTextInputBean i.e CustID on base page and Lov Region Item would be the CustomerID of the Lov Table region.
    Create Custome ID in LOV Table region and set its render property to false. I am assuming that the custId is present in the LOV VO query.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Help needed with oracle text special character search

    Hi all
    Using oracle 11g sql developer 4.0
    I am facing this challenge where Oracle text when it comes to searching text that contains special character.
    This what I have done so far with help of http://www.orafaq.com/forum/t/162229/
      CREATE TABLE "SOS"."COMPANY"
       ( "COMPANY_ID" NUMBER(10,0) NOT NULL ENABLE,
      "COMPANY_NAME" VARCHAR2(50 BYTE),
      "ADDRESS1" VARCHAR2(50 BYTE),
      "ADDRESS2" VARCHAR2(10 BYTE),
      "CITY" VARCHAR2(40 BYTE),
      "STATE" VARCHAR2(20 BYTE),
      "ZIP" NUMBER(5,0)
       ) SEGMENT CREATION IMMEDIATE
      PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
      TABLESPACE "USERS" ;
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (1,'LSG SOLUTIONS LLC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (2,'LOVE''S TRAVEL',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (3,'DEVON ENERGY',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (4,'SONIC INC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (5,'MSCI',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (6,'ERNEST AND YOUNG',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (7,'JOHN DEER',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (8,'Properties@Oklahoma, LLC',null,null,null,null,null);
    Insert into COMPANY (COMPANY_ID,COMPANY_NAME,ADDRESS1,ADDRESS2,CITY,STATE,ZIP) values (9,'D.D.T  L.L.C.',null,null,null,null,null);
       BEGIN
    CTX_DDL.CREATE_PREFERENCE ('your_lexer', 'BASIC_LEXER');
         CTX_DDL.SET_ATTRIBUTE ('your_lexer', 'SKIPJOINS', '.,@-'''); -- to skip . , @ - ' symbols
        END;
      CREATE INDEX my_index2 ON COMPANY(COMPANY_NAME)
         INDEXTYPE IS CTXSYS.CONTEXT PARALLEL
       PARAMETERS ('LEXER your_lexer');   
    SELECT
    company_name
    FROM company
    WHERE CATSEARCH(company.COMPANY_NAME, 'LLC','') > 0
    ORDER BY company.COMPANY_ID;
    output
    company_name
    1 LSG SOLUTIONS LLC
    2 Properties@Oklahoma, LLC
    only return 2 row but should return 3

    I just noticed that I forgot to use an empty stoplist, so I have added that to the revised example below.  Otherwise, it uses a default stoplist that would not index common single-letter words like A and I.
    1. Whtat is Just search on single character 'L'? It give me error.
    Since it uses the NEAR operator, searching for just one letter causes incomplete syntax, asking it to search for L near a missing second value.  So, I have added additional code to allow for just one letter.
    2. How do I do auto refresh on this index on datastore?
    If I add "sync        (on commit)" it does not refresh the previously set token.
    Sync(on commit) does synchronize so that the data is immediately searchable.  You have to either optimize or rebuild or drop and recreate the index to condense the rows in the domain index table.
    3.lastly explanation of
    <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
                      <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
                    <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    why 100 true and 100 false
    100 is just a default value that I used for the second parameter of near, indicating how close the letters need to be to each other.  True and False are values for the third parameter of near, indicating whether or not the letters must be in the same order or not.  So, it returns the results in the order of first those that are very close to one another and in the same order, then those that may be further away but in the same order, then those that may be further away and in any order.
    SCOTT@orcl12c> CREATE TABLE company_near
      2    (company_id    NUMBER(10,0) NOT NULL ENABLE,
      3      company_name  VARCHAR2(50 BYTE))
      4  /
    Table created.
    SCOTT@orcl12c> SET DEFINE OFF
    SCOTT@orcl12c> BEGIN
      2  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (1,'LSG SOLUTIONS LLC');
      3  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (2,'LOVE''S TRAVEL');
      4  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (3,'DEVON ENERGY');
      5  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (4,'SONIC INC');
      6  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (5,'MSCI');
      7  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (6,'ERNEST AND YOUNG');
      8  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (7,'JOHN DEER');
      9  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (8,'Properties@Oklahoma, LLC');
    10  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (9,'D.D.T  L.L.C.');
    11  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (10,'LSG COMPANY, LLC');
    12  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (11,'LSG STAFFING, LLC');
    13  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (12,'L & S GROUP LLC');
    14  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (13,'L S & G, INC.');
    15  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (14,'L.S.G. PROPERTIES, L.L.C.');
    16  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (15,'LSGS PROPERTIES, LLC');
    17  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (16,'LSQ INVESTORS, L.L.C');
    18  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (17,'LHP SHERMAN/GRAYSON, LLC');
    19  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (18,'Walmart');
    20  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (19,'Wal mart');
    21  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (20,'LSG Property Investments, L.L.C.');
    22  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (21,'1224 S GALVESTON AVE, LLC');
    23  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (22,'1527 S GARY AVE, LLC');
    24  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (23,'FIFTEENTH STREET GRILL');
    25  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (24,'Massa Lobortis LLP');
    26  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (25,'Risus A Inc.');
    27  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (26,'Dollar $ store');
    28  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (27,'L.O.V.E., INC. ');
    29  Insert into COMPANY_NEAR (COMPANY_ID,COMPANY_NAME) values (28,'J-MART LLC ');
    30  END;
    31  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE OR REPLACE FUNCTION letters_func
      2    (p_string IN VARCHAR2)
      3    RETURN        VARCHAR2
      4  AS
      5    v_string     VARCHAR2(4000);
      6  BEGIN
      7    FOR i IN 1 .. LENGTH (p_string)
      8    LOOP
      9       IF REGEXP_LIKE (SUBSTR (p_string, i, 1), '[A-Z]', 'i')
    10       THEN
    11         v_string := v_string || SUBSTR (p_string, i, 1) || ',';
    12       END IF;
    13    END LOOP;
    14    v_string := RTRIM (v_string, ',');
    15    RETURN v_string;
    16  END letters_func;
    17  /
    Function created.
    SCOTT@orcl12c> BEGIN
      2    CTX_DDL.CREATE_PREFERENCE ('letters_datastore', 'MULTI_COLUMN_DATASTORE');
      3    CTX_DDL.SET_ATTRIBUTE
      4       ('letters_datastore',
      5        'COLUMNS',
      6        'letters_func (company_name) company_name');
      7    CTX_DDL.SET_ATTRIBUTE ('letters_datastore', 'DELIMITER', 'NEWLINE');
      8  END;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> CREATE INDEX letters_index ON company_near (company_name)
      2  INDEXTYPE IS CTXSYS.CONTEXT
      3  PARAMETERS
      4    ('DATASTORE  letters_datastore
      5       STOPLIST   CTXSYS.EMPTY_STOPLIST
      6       SYNC        (ON COMMIT)')
      7  /
    Index created.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            24
    1 row selected.
    SCOTT@orcl12c> VARIABLE search_string VARCHAR2(100)
    SCOTT@orcl12c> EXEC :search_string := 'LSG'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
      2  FROM   company_near
      3  WHERE  CONTAINS
      4            (company_name,
      5             '<query>
      6            <textquery>
      7              <progression>
      8                <seq>'       || :search_string            || '</seq>
      9                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
    10                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
    11                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    12              </progression>
    13            </textquery>
    14             </query>',
    15             1) > 0
    16  ORDER  BY SCORE(1) DESC
    17  /
      SCORE(1) COMPANY_ID COMPANY_NAME
            56          1 LSG SOLUTIONS LLC
            56         10 LSG COMPANY, LLC
            56         11 LSG STAFFING, LLC
            56         12 L & S GROUP LLC
            56         13 L S & G, INC.
            56         14 L.S.G. PROPERTIES, L.L.C.
            56         20 LSG Property Investments, L.L.C.
            56         15 LSGS PROPERTIES, LLC
            31         17 LHP SHERMAN/GRAYSON, LLC
             8         21 1224 S GALVESTON AVE, LLC
             4         22 1527 S GARY AVE, LLC
             4         23 FIFTEENTH STREET GRILL
    12 rows selected.
    SCOTT@orcl12c> EXEC :search_string := 'L'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> /
      SCORE(1) COMPANY_ID COMPANY_NAME
            78          1 LSG SOLUTIONS LLC
            77          8 Properties@Oklahoma, LLC
            77          9 D.D.T  L.L.C.
            77         10 LSG COMPANY, LLC
            77         11 LSG STAFFING, LLC
            77         12 L & S GROUP LLC
            77         28 J-MART LLC
            77          2 LOVE'S TRAVEL
            77         26 Dollar $ store
            77         24 Massa Lobortis LLP
            77         23 FIFTEENTH STREET GRILL
            77         14 L.S.G. PROPERTIES, L.L.C.
            77         15 LSGS PROPERTIES, LLC
            77         16 LSQ INVESTORS, L.L.C
            77         17 LHP SHERMAN/GRAYSON, LLC
            77         20 LSG Property Investments, L.L.C.
            77         21 1224 S GALVESTON AVE, LLC
            77         22 1527 S GARY AVE, LLC
            76         19 Wal mart
            76         18 Walmart
            76         27 L.O.V.E., INC.
            76         13 L S & G, INC.
    22 rows selected.
    SCOTT@orcl12c> INSERT INTO company_near (company_id, company_name) VALUES (30, 'Laris Gordman llc.'  )
      2  /
    1 row created.
    SCOTT@orcl12c> COMMIT
      2  /
    Commit complete.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            35
    1 row selected.
    SCOTT@orcl12c> EXEC :search_string := 'Laris Gordman llc.'
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT SCORE(1), company_id, company_name
      2  FROM   company_near
      3  WHERE  CONTAINS
      4            (company_name,
      5             '<query>
      6            <textquery>
      7              <progression>
      8                <seq>NEAR((' || letters_func (:search_string) || '),1,TRUE)</seq>
      9                <seq>NEAR((' || letters_func (:search_string) || '),100,TRUE)</seq>
    10                <seq>NEAR((' || letters_func (:search_string) || '),100,FALSE)</seq>
    11              </progression>
    12            </textquery>
    13             </query>',
    14             1) > 0
    15  ORDER  BY SCORE(1) DESC
    16  /
      SCORE(1) COMPANY_ID COMPANY_NAME
           100         30 Laris Gordman llc.
    1 row selected.
    SCOTT@orcl12c> EXEC CTX_DDL.OPTIMIZE_INDEX ('letters_index', 'FULL')
    PL/SQL procedure successfully completed.
    SCOTT@orcl12c> SELECT COUNT(*) FROM dr$letters_index$i
      2  /
      COUNT(*)
            24
    1 row selected.

  • Help needed sorting a text file.

    I'm trying to simply open a file, which is a text file of a list of names, then sort that file, the print the sorted file. The problem is that I keep getting this error
    Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at pro.NamesFile.main(NamesFile.java:36)
    Which is at this line[b] words= new String(inputFile.nextLine());
    It's not reading any lines from the file and I can't figure out why.
    Here's the rest of my code:
    public class NamesFile {
         public static void main(String[] args) throws FileNotFoundException {
              Scanner inputFile;
            inputFile = new Scanner(new File("C:/Documents and Settings/Cougar/Desktop/New Folder (2)/names.txt"));
            String name;
            inputFile.next();
            String[] words = new String[100];
            while (inputFile.hasNext()) {
                 name = inputFile.nextLine();     
                 for (int i = 0; i < words.length; i++) {
                      words[i] = new String(inputFile.nextLine());
            Sort2.insertionSort(words);
                 for (int index=0; index < words.length; index++)
                    System.out.print(words[index].toString()+"\t");
    }Here the sort algoritm I'm using, it the insertion sort one.
    public static void selectionSort (String[] list)
               int min;
               String temp;
               for (int index = 0; index < list.length-1; index++)
                  min = index;
                  for (int scan = index+1; scan < list.length; scan++)
                     if (list[scan].compareTo(list[min]) < 0)
                        min = scan;
                  // Swap the values
                  temp = list[min];
                  list[min] = list[index];
                  list[index] = temp;
            public static void insertionSort (String[] list)
               for (int index = 1; index < list.length; index++)
                    String key = list[index];
                  int position = index;
                  //  Shift larger values to the right
                  while (position > 0 && key.compareTo(list[position-1]) < 0)
                     list[position] = list[position-1];
                     position--;
                  list[position] = key;
            }I'm still relativly new at this, so forgive me if there's something obvious that I'm missing.And thanks for any help anybody can give me.

    You haven't gotten to running the sort yet, so I didn't even check that the sort routine is correct.
    Your problem is:
    You say inputFile.hasNext() once, and then you read 1 line from it. Then, in your 'for' loop, you read 100 lines from it. So, you always attempt to read 101 lines, even if the file is shorter than that.
    You should call "hasNext" before each call to "readLine". Also, you probably want a "while" loop, instead of a "for" loop, since you don't know how many words you will have. I assume you are expecting 100 or less (based on your array size).
    Two more notes:
    1. Don't do "new String(inputFile.readLine())". All you need is:
    words= inputFile.nextLine();
    2. You don't need toString here:
    System.out.print(words[index].toString()+"\t");words[index] is already a String, and concatenating the "\t" to words[index] would create a String, anyway, no matter what type words[index] was. And, calling:
    System.out.print(words[index]);would also automatically call "toString", even if words[index] were not a String.
    You could avoid creation of new Strings by:
    System.out.print(words[index]);
    System.out.print("\t");Just make sure you add braces around them, if both lines are the body of a 'for' loop. You should also make the second 'for' loop into a 'while' loop, using a counter that you update as you read the lines--so that you don't process the "null" elements of the array. You also need to account for null elements in your sort method.

  • Help please - Synching Word text with web pages

    Hi,
    I'm creating a welcome page to display in our company's front lobby to welcome guests. Another department is going to be in charge of updating names, so want I'm trying to do is insert a Word document in each cell where names will change. Files are named "Guest Name 1," "Guest Name 2," etc. I'm trying to find a way where these Word docs can be "linked" to cells instead of placed so when the names are changed and resaved, the name changes synch on the web page as well. Does anyone know if this is possible, or how to do this? Or if there's an easier way?
    I appreciate any help you can give me.
    Thanks!
    Jeff

    Hi Joey,
    Thanks for your reply.
    The screen in the lobby will point to a web address, similiar to an internet page. We have our own server. I'm not in IT, so I don't know all the details, but I know the page will be similar to our intranet.
    I've never made a dynamic site before. Can you tell me what that means? And if another work station is responsible for adding guest names to the guest screen, would they need special software to make changes?
    Thanks again!
    Jeff

  • [JS, CS3] Please help--need to search text & then insert at find

    Hi all,
    I have a nifty script that I use to make stacked fractions by inserting an inline textframe.  It has a dialog which allows you to enter the numerator and denominator.
    Now I would like to modify this script to automatically search for fractions within text (for example, 5/16) and replace that fraction with my inserted textframe.
    The problem is I cannot figure out how to search for the word containing the slash character and then get the insertion point so I can add my textframe as an inline.  Once I find the word with the slash (the fraction), I think I can split the contents of the fraction at the slash to get the numerator & denominator.  Just cannot pop that textframe in there at that point and replace the word.
    Have I made this clear enough for anyone who might be able to help?
    Regards,
    Len Swierski

    Hi Len,
    You just sent me on a trip down memory lane. I wrote about this very issue very soon after CS hit the street with JavaScript for the first time. On this page:
    http://www.pdsassoc.com/index.php?Nav=javassub&Ban=SettingFractions&Info=jstutorials/Setti ngFractions/index.html
    you'll find what I think is a relevant discussion. I required the user to select a slash but that's where you'll be after your script has found a slash. Hope this helps. I was perhaps a tad pedantic on that page but it was all very new at the time.
    Dave

  • Help needed badly Insert text data from xml files into tables

    Hi all, I have asked to do insertion of text from a xml file into tables upon receiving using pro*c. i've done quite an amount of research on xml parser in c but there wasn't much information for mi to use for implementation...
    Guys don't mind helping me to clarify few doubts of mine...
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?
    2. Is there any tutorials or help files for xml parser libs where i can read up?
    I need the xml parser to recognise the tags, followed by recognising the text after the tags.
    eg. xml format
    <studentID> 0012 </studentID>
    <student> john </student>
    <studentID> 0013 </studentID>
    <student> mary </student>
    text willl be inserted into tables like this:
    studentID | student
    0012 | john
    0013 | mary
    by the way i'm using oracle 8i on HP-UX. Thanks in advance.

    I can answer one of of your questions at least
    1. Where can i get the oracle xml parser libs? Is it included when i installed oracle 8i?You need the XML XDK. You can use http://www.oracle.com/technology/tech/xml/xdkhome.html as your starting point. I believe the 9i version works for 8i.
    I have no pro*c experience so I can't offer any other suggestions regarding how to do this in pro*c.

  • Help needed in reading text file to database table

    Hello experts,
    i have to insert the values from the column of this text file and insert them in my database table.
    I have done a few file to table insertions but i'm having some trouble with this one.
    Any suggestions plz
    thanks
    liab_report      1.00                                                                                                                              Page: 1
    CDC:00537 / Mon Jun-21-2010                           LIABILITY REPORT                               Mon Jun-21-2010 22:06:26
    DRAW    1; SET    1;  November 7, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         701040.00          0.00     660146.00          0.00      40894.00    0.00          0.00
        Div3        1444128.00          0.00    1330056.00          0.00     114072.00    0.00          0.00
        Div4        4711900.00          0.00    3889700.00          0.00     822200.00    0.00          0.00
                    6857068.00          0.00    5879902.00          0.00     977166.00    0.00          0.00
    DRAW    2; SET    1;  November 14, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         817817.00          0.00     817817.00          0.00          0.00    0.00          0.00
        Div3        1687405.00          0.00    1611742.00          0.00      75663.00    0.00          0.00
        Div4        3402100.00          0.00    3034200.00          0.00     367900.00    0.00          0.00
                    5907322.00          0.00    5463759.00          0.00     443563.00    0.00          0.00
    DRAW    3; SET    1;  November 21, 2009
                         TOTAL       PAID ON         TOTAL    EXPIRED ON         TOTAL    FRAC   OUTSTANDING
                       WINNERS      06/21/10          PAID      06/21/10       EXPIRED   ROUND
      DIVISION          AMOUNT        AMOUNT        AMOUNT        AMOUNT        AMOUNT  AMOUNT        AMOUNT
        Div1              0.00          0.00          0.00          0.00          0.00    0.00          0.00
        Div2         779933.00          0.00     769804.00          0.00      10129.00    0.00          0.00
        Div3        1605548.00          0.00    1525104.00          0.00      80444.00    0.00          0.00
        Div4        4891700.00          0.00    4256800.00          0.00     634000.00    0.00        900.00
                    7277181.00          0.00    6551708.00          0.00     724573.00    0.00        900.00

    Plz clarify whether u want to load text file as a file into database or value of this text file into database. If values are to be loaded from this text file, U can better format the text file and use SQL loader to load the file into database. By formatting the database, i mean remove the unnecessary headings and characters, kee only the values to be loaded idelimited by ' '(space) or ','(comma). Create a control file and load it into the target table.

  • Help needed regarding 'Address Text' in Smartforms

    hi guys,
    To display the address text in Smartforms, we include an 'Address' component and provide the respective address number to it. I just want to know which is the table where the complete address text corresponding to the address number is saved. I have checked the 'ADRC' & 'ADRCT' tables but in vain. Help me out.
    With regards,
    Sandeep Panja.

    Hi Panja,
                 In smartform u have to pass the address no and it's give the full address by FM ADDRESS_INTO_PRINTFORM .plz check this fm and for address check the master table like vendor the table is LFA1 to get the address for it
    tarak

Maybe you are looking for

  • Places not working correctly

    I can't seem to get Places to work correctly. Here is what I do and what happens: 1)  I shoot picts with a point and shoot and a handheld GPS. Dates and times are in synch. Time zone double-checked. 2)  Import photos into Aperture. 3)  Plug Garmin 60

  • Apple Composite AV cable not playing video

    Hello, I bought a Apple ORIGINAL Composite AV cable so I can watch films in my TV. When I connect the cable to my tv I get sound but no video. The connections are all ok and I tried making them with both TV and Iphone turned off and on. I also tried

  • Increase in file sizes for each song

    All the songs in my iTunes were 27 gig, something has happened and now all the file sizes have increased to 112 gig. What have I done wrong and how do I get all the files back to 27 gig. Am now unable to update my iPod.

  • Plant to plant transfer in Q status

    Hello, Can someone please provide the steps to configure movement type to allow plant to plant transfer of stock with Q status? Can this be accomplished with custom movement type configuration or a user exit is available? Please advise. Thanks, avi

  • Pre-configured Teams

    Hi, Does anyone know (if possible) how to deliver fully configured teams with membership and ownership to users? We have 2000 possible users and have to create 200 teams. I wouldn't want my users to spend time in requesting permission to add to a par