I want to create a parser file which dynamically reads out XML file.

HI ,.
I created a DOM parser where i am getting the values of XML file by tag names...
which is increasing my code lines number ...
So can any one suggest me with proper way of approach to overcome this....

HI ...
Here is the code...
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.PrintStream;
import java.lang.Integer;
import org.w3c.dom.*;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import sun.java2d.loops.FillPath;
import sun.nio.ch.FileKey;
public class XMLFileParser{
     int Size,Height,X,Y,W,H;
     String L;
     String Path;
     boolean resize;
     XMLFileParser(){
void Parser(){
     try {
            DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
            DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
            Document doc = docBuilder.parse (new File("book.xml"));
            // normalize text representation
            doc.getDocumentElement ().normalize ();
            System.out.println ("Root element of the doc is " +
                 doc.getDocumentElement().getNodeName());
       //first node.
                                    NodeList FrameValues = doc.getElementsByTagName("Frame");
                                    NodeList children=(NodeList)doc.getDocumentElement().getChildNodes();
                                    System.out.println("total of childs are: "+children.getLength());
                                    //for (int j = 0; j < children.getLength(); j++)
                                    //     System.out.println(" the childs are: "+children.item(j));
                                         for(int s=0; s<FrameValues.getLength() ; s++){
                                              // System.out.println(FrameValues.getLength());
                             Node FirstFileNode = FrameValues.item(s);
                             if(FirstFileNode.getNodeType() == Node.ELEMENT_NODE){
                             Element frameelements = (Element)FirstFileNode;
                             NodeList FrameValueList1 = frameelements.getElementsByTagName("setSize");
                             Element firstAttributeElement = (Element)FrameValueList1.item(0);
                                NodeList List1 = firstAttributeElement.getChildNodes();
                             Node node1 = (Node)List1.item(0);
                             String nodeName1 = node1.getNodeValue();
                             int value1 = Integer.parseInt(nodeName1);                           
                             setSize(value1);
                             NodeList FrameValueList2 = frameelements.getElementsByTagName("Height");
                             Element secondAttributeElement = (Element)FrameValueList2.item(0);
                             NodeList List2 = secondAttributeElement.getChildNodes();
                             Node node2 = (Node)List2.item(0);
                             String nodeName2 = node2.getNodeValue();
                             int value2 = Integer.parseInt(nodeName2);
                               setHeight(value2);
                             NodeList FrameValueList3 = frameelements.getElementsByTagName("BoundsX");
                             Element thirdAttributeElement = (Element)FrameValueList3.item(0);
                             NodeList List3 = thirdAttributeElement.getChildNodes();
                             Node node3 = (Node)List3.item(0);
                             String nodeName3 = node3.getNodeValue();
                             int value3 = Integer.parseInt(nodeName3);
                               setBounds(value3);
                                NodeList FrameValueList4 = frameelements.getElementsByTagName("BoundsY");
                                Element fourthAttributeElement = (Element)FrameValueList4.item(0);
                                NodeList List4 = fourthAttributeElement.getChildNodes();
                                Node node4 = (Node)List4.item(0);
                                String nodeName4= node4.getNodeValue();
                                int value4 = Integer.parseInt(nodeName4);
                              setBounds1(value4);
                              NodeList FrameValueList5 = frameelements.getElementsByTagName("BoundsW");
                                Element fifthAttributeElement = (Element)FrameValueList5.item(0);
                                NodeList List5 = fourthAttributeElement.getChildNodes();
                                Node node5 = (Node)List5.item(0);
                                String nodeName5 = node5.getNodeValue();
                                int value5 = Integer.parseInt(nodeName5);
                              setBounds2(value5);
                              NodeList FrameValueList6 = frameelements.getElementsByTagName("BoundsH");
                                Element sixthAttributeElement = (Element)FrameValueList6.item(0);
                                NodeList List6 = sixthAttributeElement.getChildNodes();
                                Node node6 = (Node)List6.item(0);
                                String nodeName6 = node6.getNodeValue();
                                int value6 = Integer.parseInt(nodeName6);
                              setBounds3(value6);
                              NodeList FrameValueList7 = frameelements.getElementsByTagName("Resize");
                                Element seventhAttributeElement = (Element)FrameValueList6.item(0);
                                NodeList List7 = seventhAttributeElement.getChildNodes();
                                Node node7 = (Node)List7.item(0);
                                String nodeName7 = node7.getNodeValue();
                                boolean value7= Boolean.parseBoolean(nodeName7);
                              setResize(value7);
     // second node.
                                    NodeList PanelValues = doc.getElementsByTagName("Panel");
                                    for(int s=0; s<PanelValues.getLength() ; s++){
                      // System.out.println(FrameValues.getLength());
                             Node FirstFileNode = PanelValues.item(s);
                             if(FirstFileNode.getNodeType() == Node.ELEMENT_NODE){
                             Element Panelelements = (Element)FirstFileNode;
                             NodeList PanelValueList1 = Panelelements.getElementsByTagName("Layout");
                             Element firstAttributeElement = (Element)PanelValueList1.item(0);
                                NodeList List1 = firstAttributeElement.getChildNodes();
                             Node node1 = (Node)List1.item(0);
                             String Layout = node1.getNodeValue();
                             //int value1 = Integer.parseInt(nodeName1);                           
                             setLayout(Layout);
                             NodeList PanelValueList2 = Panelelements.getElementsByTagName("ImagePath");
                             Element secondAttributeElement = (Element)PanelValueList2.item(0);
                                NodeList List2 = secondAttributeElement.getChildNodes();
                             Node node2 = (Node)List1.item(0);
                             String path = node1.getNodeValue();
                             //int value1 = Integer.parseInt(nodeName1);                           
                             setPath(path);
                }//end of if clause
            }//end of for loop with s1 var*/
        catch (SAXParseException err)
        System.out.println ("** Parsing error" + ", line "
             + err.getLineNumber () + ", uri " + err.getSystemId ());
        System.out.println(" " + err.getMessage ());
        catch (SAXException e)
        Exception x = e.getException ();
        ((x == null) ? e : x).printStackTrace ();
        catch (Throwable t)
        t.printStackTrace ();
private void setResize(boolean value7) {
     // TODO Auto-generated method stub
     resize=value7;
public boolean getResize(){
     System.out.println("Resize" + resize);
     return resize;
private void setPath(String path) {
     // TODO Auto-generated method stub
      Path = path;
public String getPath(){
     System.out.println("Path" + Path);
     return Path;
private void setLayout(String layout) {
     // TODO Auto-generated method stub
     L=layout;
public String getLayout(){
     System.out.println("Layout" + L);
     return L;
private void setBounds3(int value6) {
     // TODO Auto-generated method stub
     H=value6;
     System.out.println("setBoundsH" + H);
public int getBounds3(){
     System.out.println("getBoundsH" + H);
     return H;
private void setBounds2(int value5) {
     // TODO Auto-generated method stub
     W=value5;
     System.out.println("setBoundsW" + W);
public int getBounds2(){
     System.out.println("getBoundsW" + W);
     return W;
private void setBounds1(int value4) {
     // TODO Auto-generated method stub
     Y=value4;
     System.out.println("setBoundsY" + Y);
public int getBounds1(){
     System.out.println("getBoundsY" + Y);
     return Y;
public void setBounds(int value3) {
     // TODO Auto-generated method stub
X= value3;
     System.out.println("setBoundsX" + X);
public int getBounds(){
     System.out.println("getBoundsX" + X);
     return X ;
public void setHeight(int value2) {
          // TODO Auto-generated method stub
          Height=value2;
          System.out.println("setHeight " + Height);
public int getHeight(){
     System.out.println("getHeight " + Height);
     return (Height);
setSize(int value1) {
          // TODO Auto-generated method stub
          Size=value1;
          System.out.println("setSize " + Size);
     public int getSize() {
          System.out.println("getSize " + Size);
          return ( Size);
      }here i am calling the elements of my xml file each time by tag name ...which is increasing my code lines....so any solution please....

Similar Messages

  • I want to create an intelligent file to show all pictures with 3 stars or more. Trying this, I don't know the character of the stars to fill in the respective box ??

    I want to create an intelligent file in my finder to show all pictures with 3 stars or more. Trying this, I don't know the character of the stars to fill in the respective box ??
    Thanks for your help.

    Take a look here: http://hints.macworld.com/article.php?story=20110314131100623
    One of the comments suggests you can't use greater than or less than with the star rating in Finder.
    You might try a Raw Query with the kMDItemStarRating.
    In the criteria popup menu, select Other, then find the Raw Query entry.
    You might have to play around with the syntax, but try "kMDItemStarRating >= 3"
    Take a look here for query syntax: https://developer.apple.com/library/mac/ipad/#documentation/Carbon/Conceptual/Sp otlightQuery/Concepts/QueryFormat.html#//apple_ref/doc/uid/TP40001849-CJBEJBHH

  • I want to create report on Sybase which provider I should use.

    I want to create report on Sybase which is good provider that I should use. I don't want to use the DSN.

    CR no longer has a native Sybase driver. Your only option is to u se ODBC or possibly a JDBC driver if they have one or their client supports one. Look on Sybases site for options.

  • I want to create a Pdf file - do i misunderstand the product?  I thought i could create a PDF similar to excel or word file or do i have to create there and convert to PDF? I bought the pack for $89.PDF Pack!

    I want to create a Pdf file - do i misunderstand the product?  I thought i could create a PDF similar to excel or word file or do i have to create there and convert to PDF? I bought the pack for $89.PDF Pack!

    Hi Brian,
    You can create it in Word or excel and then you can Convert it into .pdf Format
    Here's a feature list that depicts benefits of PDF pack: Convert Word to PDF, Convert PDF to Word & Merge PDFs | Adobe PDF Pack
    Please revert back if you have any other questions or need any help.
    Regards,
    Rahul

  • I wanted to create a module pool which accepts a table n flag

    i wanted to create a module pool which accepts a table n flag.
    and based on flasg value it allows the table to get into edit or display mode.
    the table has to use table control to display for user
    and it should be able to edit the table as well as append if the flag value is edit.
    the table which has been change should be passed back.

    HI Shailesh ,
          On your screen which contains the table control , you can definately  put the flag . Now use 2 conditions , one for change n other for display mode .Initialize the value of the flag to be "X" and based on the flag valu design your table .
    lets say u have a screen 0100 ,
    at the begining put FLAG = 'X'.
    lets say , this is for your change screen  .
    then loop at the table control and allow the fields for fields input . all you should do in the PBO only .
    next in PAI , fill the table control with the changed values .
    and in PAI , in AT-user command module , code for the flag ( / push button  ) . and pass the values when the user clicks on the button .or else here you can check whether the value of the flag is  "X" ( for change mode )  or " " .
    if it  is " "   then loop at the screen and make all the fields inactive for input ( Display mode )
    Inactivation of the fields should be done in the PBO based on the conditions .
    Revert back if you need further clarification .
    This logic should  definately work .
    Reward if helpful .
    Thanks
    Ranjita

  • I'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    i'm so confused!! I just want to create interactive pdf files (with video and flash files), but this free trial version is confusing!! help!?!

    Thanks for your suggestions. I checked to see if the options you suggested were set incorrectly but they were set to sync all. This led me to think the problem was actually in the iphone. I re-initialized the iphone and did not allow the system to restore any of the previous settings. In essence, I forced the phone to reset to factory settings. Then my video podcasts started syncing. All is well now. I did notice that I had seven podcasts selected that were "HD" presentations, and as such, are not compatible with the iphone. I don't know if this had anything to do with my earlier situation, but now I'm getting the video podcasts automatically. I'm happy. It wasn't much fun forcing the iphone to forget all of my preferences and I'm still customizing the phone now several days later. I think I have everything working and back to normal except I haven't identified any of my email accounts as of yet. Thanks for your help.

  • I want to create a "batch file" that will copy files from one folder into another, overwriting what is currently in there.

    I've got a game that has a folder with Saved Games (Okay, it's Minecraft). I don't always have my external drives because I take my Mac Mini from my house to my friend's house and of course back after we finish playing.
    There are times where I want a back up so that if something happens we can restore it as easily as possible.
    What I've been doing is copying the particular saved game and pasting it to my desktop, replacing the new backup over the old backup. I'd like to be able to create a "batch file" so that I can just double-click on it and it will copy and paste overwriting the old version.
    Since this is being automated I've been thinking. It would be nice to have 10 backups which I would like to have numbered from 1 to 10 (and not 0 to 9).
    I'd like the batch file to delete backup 10 then rename backup 9 to 10 and 8 to 9 and so forth until backup 1 becomes backup 2 and then my live copy then gets copied to my desktop. I guess that one really doesn't need a number after it. It can have the exact same name.
    Don't worry about automating the restore. I just want the backup part of it automated. I'm not a UNIX guy but I've tried to figure it out and it is just not working. So ... if someone out there can reply with a solution for me that would be great.
    Extra credit for automatically compressing the backups with the built in compression utility so my backups use less space.
    Thanks in advance.

    I have another psd (adjustment_layer.psd) file that only has one layer, and it is an adjustment layer. . 
    That is possible. An adjustment layer must be over a layer. The layer that it is over can have its visibility off but there needs to at least two layers in your (adjustment_layer.psd) file.  For you can not have and adjustment layer without a layer to adjust.
    Are all your PSD file the same in size  x px by y px at z DPI?
    It would be easy to create an action just to add the adjustment layer you want if your (adjustment_layer.psd) file adjustment layer, layer mask is a reveal all or hide all mask. You can Batch the action or use the Image processor script and have it include your action that add the adjustment layer  you do not need to write a script.
    I would also record that action to add the adjustment layer clipped to the layer below. There is a bug in CS4 and CS5 Action Player. Actions that have recorded adding adjustment layers to be applied to all layers below may play incorrectly.  You will have to pay to get a fix  for this bug for Adobe is not going to apply a fix the the current releases of Photoshop. The bug is so far slated to be fixed in CS6 time will tell.

  • Want to create and exe file for .java files

    Hello all :)
    I am making a multi-threaded console application.
    It also takes command line parameters from user.
    I want to create .exe files out of .java files.
    Note:- One class contains main method (in default package) and all other classes are in some specific package
    I want to create an exe for the whole application.
    The solutions which i get on net is exe4j but i was unable to use it.
    Please suggest me to create an windows executable file out of java files.
    Thanx in advance

    by definition, if you double click on the .exe , you won't pass it parameters
    you have to launch a shell, reach the directory where the .exe (or .jar) is stored, and launch the exe directly with parameters, e.g:
    myApplication.exe -u user -p password
    you can't double click on the exe and say "ok, i give you -u -p!" ; everything has to be done simultaneously if your app is using the "String [] args" arguments of main
    if you want to specify parameters after launching the app, you have to grab user input in your main

  • Want to create a function module  which will convert smartform into PDF .

    Hi All ,
    Requirement : I want to create a function module/report  which will convert smartform into PDF .
    Thanks in advance

    Hi All ,
    zsuresh_test : for converting smartform into pdf.
    when I am excuting this report(zsuresh_test) and by passing the smartform name FOPCR_STANDARD_F1
    I am getting error :
    Incorrect parameter with CALL FUNCTION
    Can you  please help me out..
    REPORT zsuresh_test.
    Variable declarations
    DATA:
    w_form_name TYPE tdsfname VALUE 'FOPCR_STANDARD_F1',
    w_fmodule TYPE rs38l_fnam,
    w_cparam TYPE ssfctrlop,
    w_outoptions TYPE ssfcompop,
    W_bin_filesize TYPE i, " Binary File Size
    w_FILE_NAME type string,
    w_File_path type string,
    w_FULL_PATH type string.
    Internal tables declaration
    Internal table to hold the OTF data
    DATA:
    t_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
    Internal table to hold OTF data recd from the SMARTFORM
    t_otf_from_fm TYPE ssfcrescl,
    Internal table to hold the data from the FM CONVERT_OTF
    T_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE.
    This function module call is used to retrieve the name of the Function
    module generated when the SMARTFORM is activated
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = w_form_name
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    fm_name = w_fmodule
    EXCEPTIONS
    no_form = 1
    no_function_module = 2
    OTHERS = 3
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Calling the SMARTFORM using the function module retrieved above
    GET_OTF parameter in the CONTROL_PARAMETERS is set to get the OTF
    format of the output
    w_cparam-no_dialog = 'X'.
    w_cparam-preview = space. " Suppressing the dialog box
    " for print preview
    w_cparam-getotf = 'X'.
    Printer name to be used is provided in the export parameter
    OUTPUT_OPTIONS
    w_outoptions-tddest = 'LP01'.
    CALL FUNCTION w_fmodule
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = w_cparam
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = w_outoptions
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    job_output_info = t_otf_from_fm
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    t_otf[] = t_otf_from_fm-otfdata[].
    Function Module CONVERT_OTF is used to convert the OTF format to PDF
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    ARCHIVE_INDEX = ' '
    COPYNUMBER = 0
    ASCII_BIDI_VIS2LOG = ' '
    PDF_DELETE_OTFTAB = ' '
    IMPORTING
    BIN_FILESIZE = W_bin_filesize
    BIN_FILE =
    TABLES
    otf = T_OTF
    lines = T_pdf_tab
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    ERR_BAD_OTF = 4
    OTHERS = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    To display File SAVE dialog window
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    EXPORTING
    WINDOW_TITLE =
    DEFAULT_EXTENSION =
    DEFAULT_FILE_NAME =
    FILE_FILTER =
    INITIAL_DIRECTORY =
    WITH_ENCODING =
    PROMPT_ON_OVERWRITE = 'X'
    CHANGING
    filename = w_FILE_NAME
    path = w_FILE_PATH
    fullpath = w_FULL_PATH
    USER_ACTION =
    FILE_ENCODING =
    EXCEPTIONS
    CNTL_ERROR = 1
    ERROR_NO_GUI = 2
    NOT_SUPPORTED_BY_GUI = 3
    others = 4
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
    presentation server
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = W_bin_filesize
    filename = w_FULL_PATH
    FILETYPE = 'BIN'
    APPEND = ' '
    WRITE_FIELD_SEPARATOR = ' '
    HEADER = '00'
    TRUNC_TRAILING_BLANKS = ' '
    WRITE_LF = 'X'
    COL_SELECT = ' '
    COL_SELECT_MASK = ' '
    DAT_MODE = ' '
    CONFIRM_OVERWRITE = ' '
    NO_AUTH_CHECK = ' '
    CODEPAGE = ' '
    IGNORE_CERR = ABAP_TRUE
    REPLACEMENT = '#'
    WRITE_BOM = ' '
    TRUNC_TRAILING_BLANKS_EOL = 'X'
    WK1_N_FORMAT = ' '
    WK1_N_SIZE = ' '
    WK1_T_FORMAT = ' '
    WK1_T_SIZE = ' '
    IMPORTING
    FILELENGTH =
    tables
    data_tab = T_pdf_tab
    FIELDNAMES =
    EXCEPTIONS
    FILE_WRITE_ERROR = 1
    NO_BATCH = 2
    GUI_REFUSE_FILETRANSFER = 3
    INVALID_TYPE = 4
    NO_AUTHORITY = 5
    UNKNOWN_ERROR = 6
    HEADER_NOT_ALLOWED = 7
    SEPARATOR_NOT_ALLOWED = 8
    FILESIZE_NOT_ALLOWED = 9
    HEADER_TOO_LONG = 10
    DP_ERROR_CREATE = 11
    DP_ERROR_SEND = 12
    DP_ERROR_WRITE = 13
    UNKNOWN_DP_ERROR = 14
    ACCESS_DENIED = 15
    DP_OUT_OF_MEMORY = 16
    DISK_FULL = 17
    DP_TIMEOUT = 18
    FILE_NOT_FOUND = 19
    DATAPROVIDER_EXCEPTION = 20
    CONTROL_FLUSH_ERROR = 21
    OTHERS = 22
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • Using two T lists i want to create a UI, from which user can make selection

    I want to create a UI in forms 6i, wherein there will be two T lists on the same canvas. I'll populate the left one from the record group and then make selections to the right one using four buttons in between.
    I'm using the add_list_element, delete_list_element, get_list_element_label, get_list_element_value built ins to do that. But it is not working properly. Giving a lot of forms errors.
    The same thing can be done in JDeveloper using a shuttle bean.
    An example of the UI that i want to construct :
    The kind of UI that i'm talking can be seen when we construct a new form manually, then we goto data block wizard. There we browse for a table and the wizard gives the list of the columns for that table, from this list selections can be done using the four buttons in the same way that i intend my form to do. This is the kind of UI i want to develop.
    I'm very new to development in forms. I'm sure you people at OTN will help me.
    Thanks,
    Abhishek.

    Hi Abhishek
    What is happening by these
    Copy(v_value, p_tlist_into); and
    ...This commans set list item value (list selection).
    The most simple way to move all elements between lists is to populate the target list from record group, and the to clear the source list. The lack of the given method - order of elements will be same, as in group.
    PROCEDURE Move_All_Elements (p_tlist_from VARCHAR2, p_tlist_into VARCHAR2) is
    v_value VARCHAR2(100);
    v_label VARCHAR2(100);
    v_index_from NUMBER;
    v_index_into NUMBER;
    v_count_from NUMBER; -- Count elements of tlist_out
    BEGIN
    --v_index_from := Get_List_element_count(p_tlist_from);
    -- Get_List_element_count never return zero!
    v_index_from := Get_List_Current_Index(p_tlist_from);
    if v_index_from = 0 then -- The source list is enpty
    --fnd_message.debug('elements=0, so return');pause;
    RETURN;
    end if;
    --v_index_into := Get_List_element_count(p_tlist_into);
    v_index_into := Get_List_Current_Index(p_tlist_into);
    if v_index_into = 0 then -- The target list contant only DEFAULT value
    --fnd_message.debug('no elements, so clearing the list');pause;
    clear_list(p_tlist_into);
    end if;
    v_count_from := Get_List_element_count(p_tlist_from);
    FOR i IN 1..v_count_from
    LOOP
    v_label := Get_List_Element_Label(p_tlist_from, i);
    v_value := Get_List_Element_Value(p_tlist_from, i);
    --Add_List_Element(p_tlist_into, v_index_into, v_label, v_value);
    Add_List_Element(p_tlist_into, v_index_into+i, v_label, v_value);
    -- The commands are lower in a loop are not necessary.
    -- The commands after the loop make too most.
    --Copy(v_value, p_tlist_into);
    --Delete_List_Element(p_tlist_from, i);
    --v_index_from := Least(v_index_from, Get_List_Element_Count(p_tlist_From));
    --v_value := Get_List_Element_Value(p_tlist_from, v_index_from);
    --v_value := Get_List_Element_Value(p_tlist_from, v_index_from + v_index_into);
    --Copy (v_value, p_tlist_from);
    --fnd_message.debug('done for one element');pause;
    --exit when v_label is null;
    END LOOP;
    clear_list(p_tlist_from);
    v_value := Get_List_Element_Value(p_tlist_into, v_count_from + v_index_into);
    Copy (v_value, p_tlist_into);
    EXCEPTION
    when others then null;
    END;

  • Using two T lists i want to create a UI, from which selections can be made

    I want to create a UI in forms 6i, wherein there will be two T lists on the same canvas. I'll populate the left one from the record group and then make selections to the right one using four buttons in between. I'm using the add_list_element, delete_list_element, get_list_element_label, get_list_element_value built ins to do that. But it is not working properly.
    I'm very new to development in forms.
    If anybody has developed such an UI in forms, please help me.
    Thanks,
    Abhishek.

    The kind of UI that i'm talking can be seen when we construct a new form manually, then we goto data block wizard. There we browse for a table and the wizard gives the list of the columns for that table. This is the kind of UI i want to develop. I hope the people at OTN would not dissappoint me.
    Abhishek

  • I want to create a vector file from a png file

    I would like to create a vector file from a png file using Adobe CC. I am a novice Illustrator user and it seems that the instructions I can find are from earlier versions.

    The instructions may be old, but the procedures are the same - you use image trace with the necessary cleanup procedures or re-draw it manually. There is no magic involved.
    Mylenium

  • How do I create on-line PDFs which will read them to visually impared customers?

    I have seen a handful of unanswered questions about getting Adobe Reader to read aloud, on-line or downloaded PDF content to people who are visually impaired. None of them seem to answer the questions about Acrobat X.1 or backward compatibility. Before I spend $45 for one chapter from a book, perhaps one of you experts know of a simple site which explains how to comply with the ADA Americans with Disabilities’ Act.
    I know there are many variables like OS, Reader version and user ability to enable their sound card and configure a few settings.
    This summary is excerpted from chapter 23 of The Acrobat X PDFBible by Ted Padova, published by Wiley. Follow the link further below to download the complete 16-page sample chapter. Adobe Acrobat is compliant with U.S. federal code regulating document accessibility for vision- and motion-challenged persons. This means that screen readers can intelligently interpret the PDFs you create; in other
    words, PDF files can be read aloud in a reading order as a sighted person would read a document. Through an extensive set of keyboard shortcuts available in Acrobat, almost anyone with vision or motion challenges can share your documents and read them. In order for a document to be accessible, you must use authoring applications capable of delivering a document's structure to Acrobat. You need to know something about the internal structure of documents and which programs to use to create the structure required by Acrobat to make a document accessible. Not all the content in a document travels through the PDF-creation process with the information necessary to make a document completely accessible. Therefore, you need to perform some work in Acrobat to either add accessibility or to polish up a document for delivery to a screen reader in a form that makes sense to the user.
    In chapter 23 of The Acrobat X PDF Bible, you will learn how to check documents for tags and accessibility, add additional tags and arranger eading orders. Topics covered include:
    Using screen readers can interpret accessible PDF files and create audio output for people with vision and motion challenges. Using Adobe PDFMaker for Microsoft products, version 2000 or higher, including Word, Excel, Visio and so on; Adobe PageMaker 7 and higher; and Adobe FrameMaker, Adobe LiveCycle Designer, Adobe InDesign 2.0 and higher are capable of creating tagged and accessible PDF forms. Adding tags to PDF documents from a menu command within Acrobat Standard and Acrobat Pro and Pro Extended. Checking files for accessibility with the Quick Check command in Adobe Reader, Acrobat Standard, and Acrobat Pro and Pro Extended or with a Full Check in Acrobat Pro and Pro Extended. Tagging documents so they contain a structure tree. Elements in the tree locate respective elements in the document if you enable the Highlight Content menu command. Adding alternate text to elements in Acrobat by addressing the element's properties. http://www.wiley.com/WileyCDA/WileyTitle/productCd-0470612916.html
    Thanks if you know something helpful

    An accessible PDF is a well-formed Tagged PDF.
    You start with the proper authoring application that has tag management (there are not that many - discussed below).
    Your Tagged output PDF must be post-processed with Acrobat Pro.
    You evaluate the post-processed PDF.
    If satisfactory, you deploy the well-formed Tagged PDF.
    Adobe Reader or Acrobat (from 8.x forward) both provide the read out loud feature (ROL).
    While this is not equivalent to a full assistive technology (AT) application it can be useful for simpler narrative content.
    However, PDF page content consists of graphic objects (text included) that are painted to the page in a sequence/order that is "machine" centric rather than human centric.
    So, the raw print stream's read order can jump around. 
    (Look over ISO 32000-1 Forward paragraph 2 & Sections 8.1 & 8.2 to get a feel for what "PDF" is (& isn't).)
    PDF became an ISO Standard in 2008. This is currently ISO 32000-1. ISO 32000-2 is expected to be out in 2012.
    In terms of accessible PDF, ISO 14289-1 is expected to be out in 2012.
    ISO 14289 will define/describe the requirements for accessible PDF.
    Adobe introduced "Tagged PDF" with Acrobat 5.x (PDF version 1.4) "Full" release.
    For Acrobat 5.x this was an add-on that you took from the install CD-ROM.
    Since then "Tag" creation, management, etc. has been included with the install of: 
    (n.b., PDFMaker provides "tag management")
    --| Acrobat 6.x  Pro (PDF version 1.5)
    --| Acrobat 7.x Pro & 3D (PDF version 1.6)
    --| Acrobat 8.x Pro  &  3D (PDF version 1.7)
    --| Acrobat 9.x Pro & Extended (ISO 32000 & Adobe Supplement BaseVersion 1.7, ExtensionLevel 3)
    --| Acrobat X Pro (ISO 32000 & Adobe Supplement BaseVersion 1.7, ExtensionLevel 3)
    If the PDF is a well-formed Tagged PDF then ROL works its way down the structure tree (which can be viewed in Acrobat Pro's Tags panel).
    A well-formed Tagged PDF (built to comply with ISO 32000 currently & going forward built to comply with ISO 14289 / ISO 32000 will, in fact meet current Section 508 criteria and Section 508 Refresh criteria.
    Actually, it will met more rigorous criteria (Section 508, compared to other nations' requirements is somewhat anemic).
    For English, ROL will read left to right; top down.
    Not very useful for understanding tables and some other aspects of more developed content.
    AT uses the structure tree to convey the PDF's logical hierarchy and semantic content flow to users.
    So, a well-formed Tagged PDF is an essential for users of AT.
    Section 14 of ISO 32000-1 provides discussion of logical structure and tags.
    An ISO approved copy is at Adobe:
    ISO 32000-1
    In a nut shell, you'd want to provide a well-formed Tagged PDF.
    To effectively  consume a downloaded well-formed Tagged PDF end-users will want to use AT (NVDA (free, open source), JAWS, etc.) rather than Adobe Reader / Acrobat ROL.
    As to Ted's PDF Bible.
    I've got 'em on my bookshelf. Most excellent global references for all things Acrobat.
    However, to deploy well-formed Tagged PDF requires more detailed references.
    There is the up front authoring. Content must be mastered so as to support output of a well-formed Tagged PDF.
    There is the requisite post-processing of the PDF with Acrobat Pro.
    There is the requisite understanding of what the tags/elements are & how to properly use them.
    There is the need for specific "how-to" with examples.
    As to a "simple site" - - well, ahhh, "simple" precludes anything of usable worth, eh.
    A search on variations of "accessible PDF" will provide links to resources that provide "how-to".
    One resource is the Accessiblilty Forum at the Acrobat User Community.
    AUC Accessibility Forum
    An older thread there has links to Adobe "how-to" for various Acrobat releases. 
    An older list of reference material
    As the core of Acrobat's accessibility features are largely the same since Acrobat 5.x older how-to documents are still useful.
    For the most part, the most definitive discussions of the how-to & the why are in older Adobe documents.
    Of course, stuff comes & goes out on the web so the links may or may not be functional.
    (n.b., you'll have to copy-paste the URLs into a browser's address bar)
    However, a search on a document's title may provide an alternative link. 
    If not, send me a forum PM.
    Remember that the key to success (for a well-formed Tagged PDF) is in the authoring.
    Proper authoring with an application that provides adequate Tag management is critical.
    --| Adobe FrameMaker or InDesign with Acrobat Pro
    --|  MS Word with Acrobat Pro (for PDFMaker & ability to perform requisite post-processing of the PDF) for pre Office 2007
    --| MS Word 2007  / 2010 have a Save As PDF feature that can provide tag management -- but Acrobat Pro is still needed to perform requisite post-processing
    --| Open Office (& Acrobat Pro for requisite post-processing)
    Be well...
    Message was edited by: CtDave

  • I want to create a Firefox Extension which will display a webpage. It will be like user should write a something in browser like "about:webpage" How can i load the WebPage in Firefox. The user should have a feel that a webpage is being loaded.

    My extension on clicking something should open a webpage and that webpage should be able to communicate with the servers.
    PS: I have javascript and CSS in that Page. If i cannot make then what changes do i need to make in the web page for that change. I am developing as HTML/Javascript does not allow cross domain queries. I hope that cross-domain queries are possible if i use extension.

    You may find [https://addons.mozilla.org/en-US/firefox/developers this] a useful resource :)

  • How to create a jar file which is in the remote system?

    Hi,
    I have a set of files that resides in a remote system,which have to be "jar"red. I have a firewall in between. I want to create a jar file out of the files situated in the remote system.How do i go about this process.?

    Hi,
    You can't do that in a simple way. You need to have a port open in the firewall, and you need to have a server process on the remote machine.
    Kaj

Maybe you are looking for