Working with checkbox

Good day everyone, im new to Apex and was doing just fine until i got stuck in this situation:
- I have tables A, B and C, where B is the relationship between A and C;
- I've created page 1 with a report of A, where the user selects 1 entry;
- Page 2 shows a report with checkboxes for each row of C;
I need to set checked the entries where A is related to C (B)
Any ideas on how that could be achieved?
Edson

Enough with this ..... link
http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html
How many times do we have to see it in the forum....Enough.....
Its so frustrating giving the same link time and time again...And the funny
part is that most people's questions has nothing to do with that. But
still some geniuses give the same link....I just feel so sorry for people
who are struggling to get a answer and some idiots give the same link

Similar Messages

  • How to work with checkbox in a table

    hi im working with a table than shows SQL result and i put a column with checkboxes in the table
    how can i handle the rows with the checkbox in true ? i want to do it with a button
    thanks

    Here are more resources. By the way, I don't understand what you mean by "how can i handle the rows with the checkbox in true ? i want to do it with a button "
    http://blogs.sun.com/roller/page/divas?entry=using_checkboxes_in_a_table
    http://blogs.sun.com/roller/page/divas?entry=table_component_sample_project

  • Problem with working with add/remove instance incorporating checkbox

    I have come into a problem I have been trying to figure out for the past week. I had googled for some guidance yet I found nothing useful.
    Currently, I have a table which has an addinstance button and removeinstance button. The script for these work.
    What I am looking to do is the row starts off being in readOnly format and when I select a checkbox, one of the cell will become open ( I have a table with 12 cell in a row and about 6-7 checkboxes which will open certain cells). However, when I add an instance and one of the checkboxes is checked…the next row is still readOnly. How do I target those certain cells? if I have a checkbox checked and I add a new row..those certain fields will be open for all the cell in that column.
    If anyone could assist me, that would be great.

    This should get you going I think.
    I just worked with the "Additional Lines" checkbox and the "Add" checkbox in the table, you'll need to copy and adjust the scripts for the other objects.
    Script is on the Change event for "Additional Lines". This script will loop through the rows and toggle access on all of the matching fields, in this case the "addcb" field.  Don't know if that's what you need or not, but I did it in case someone has already added some rows and then decides to click the "Additional Lines" checkbox:
    if (this.rawValue == 1)
        var vFields = xfa.resolveNodes("form1.Subform4.Table1.Row1[*].addcb");    
        for (var i=0; i <= vFields.length-1; i++)
            vFields.item(i).access = "open";
    else
        var vFields = xfa.resolveNodes("form1.Subform4.Table1.Row1[*].addcb");
        for (var i=0; i <= vFields.length-1; i++)
            vFields.item(i).access = "readOnly";
    Script on the Initialize event of the "addcb" field. This script checks the "Additional Lines" checkbox to see what access the field should have when it is created:
    if (Subform1.additionallines.rawValue == 1)
        this.access = "open";
    else
        this.access = "readOnly";
    Hope that helps!

  • How I got my 2011 MacBook Pro (17") to work with the UML290 without any 'hackery'

    Frustrated and fed up with waiting for Verizon to finally fully support an operating system that is almost two and a half years old now, I decided to experiment and play around with things myself.  Here is what I learned:
    For some reason, the "dial your number" network hack that people got working didn't work for me.  I set up everything as the tutorials all said (GRPS (GSM/2G), APN to "vzwinternet", dial your phone number, user name is [email protected], password is vzw, CID 3, etc).  It just would not work for me.  Maybe it's becasue I had my UML290 hooked up to a Windows 7 box that updated the firmware, which may have rendered this 'hack' inept.  I don't know; all I know as that, despite trying to get this method to work for several days, I was never able to get it to work.
    There was no way, as far as I could see, to force the Verizon Access Manager (VZAM) software to run in 32bit mode as you can with most other programs.  Typically, you can hilight a program, press CMD+I and select a checkbox to run an app in 32bit mode, but no such option existed for VZAM (for whatever reason).
    Finally, I found a workaround to get the modem working until Verizon gets their act together and makes VZAM work with 64bit OS X.  Here's how:
    Completely power off your computer. 
    Depress and hold the "3" key and the "2" key (at the top of your keyboard) at the same time BEFORE pressing the power button.
    Press the power button while continuing to hold the "3" key and the "2" key.
    Continue to hold the "3" key and the "2" key until the login prompt comes up.
    Log in as normal (you may have to remove a bunch of characters from the password field; just CMD+A and delete what's in there and type your password as usual).
    After following the steps above, you should have forced your Mac to run in 32bit mode.  Run VZAM as normal and you should have no trouble connecting to the 4G/3G network.
    Note: This measure is TEMPORARY, and will force OS X to load the 32bit kernel instead of the default 64bit kernel (if your MacBook is set up to use the 64bit kernel by default).  This change will be undone at your next restart provided you do not hold down the "3" key and the "2" key.
    Note: If you used previously posted "dial-up" methods to get your modem working on your Mac, you will need to undo the 'damage' to your settings that that workaround caused.  Please see my post here (post 14) for detailed instructions on how to do so.
    Note: This is a temporary solution that carries with it some down sides:
    True 64bit support offers higher levels of security than 32bit.
    You will likely be unable to use more than 3GB of of memory as a 32bit OS cannot, by nature, address that much RAM.
    Please let me know if you have any problems.  I can't promise I can help, but I'll do my best.

    Hey, it's a simple fix that should give most people what they want until there is full VZW support: the ability to use their card with the VZAM software.  I didn't see anyone else offering that suggestion...  If you don't want to use it, you don't have to.
    At the very least, this does seem to prove the theory that this is an issue with the 32/64bit compatability that some have refuted.

  • Problem with checkbox and run the get button event continuously

    Hi all,
    I have a checkbox list of 3 sensors. I have used the X-Control (for checkbox) found in the following link for my application https://decibel.ni.com/content/docs/DOC-30558. I have problems to achieve the following.
    Suppose i check Vibration and Strain, I should be able to display both Vibration and Strain data. (I should compare each element of 1d array with the string constant and run the case structure).
    I have to run the GET event continuously to display the data. 
    I have attached the code to the post.
    Please can anyone suggest how to go about this.
    thanks in advance
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏69 KB

    Hi Bob_Schor,
    I tried using the approach you mentioned. I cant run continuously. I am not able to figure out where i am going wrong. I have attached the updated vi. 
    Hi Hooovahh,
    The link you have posted seem to work with LV2013. I am currently using LV 2011. Can you please update it to 2011. Is OpenG necessary for this?
    Regards,
    KM
    Attachments:
    Main page Enhancements for Create and Load.vi ‏77 KB

  • Report with Checkbox

    I am trying to follow the example shown at the below link but it is not working. I am modifying some of the code since I am using version 1.6. Any ideas as to what I may be doing wrong. The checkbox appears and I can select and deselect items but I cannot get P6_HOLDER to hold any of the values of the selected items. Thanks!
    http://apex-smb.blogspot.com/2009/01/apex-report-with-checkboxes-advanced.html
    First I created a page item called P6_HOLDER.
    Next I created a report region (sequence 40) with the below code.
    select htmldb_item.checkbox (1, dev_obj_id, 'onchange="spCheckChange(this);"',
    :P6_HOLDER, ':') checkbox, dev_id, dev_obj_desc from edm_dev_obj where
    dev_id = :P6_TEMP_DEV_ID
    **I then created a html region (sequence 1) with the below code**
    <SCRIPT src="http://www.google.com/jsapi"></SCRIPT>
    <SCRIPT>
    // Load jQuery
    google.load("jquery", "1.2.6", {uncompressed:true});
    function spCheckChange(pThis){
    var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=CHECKBOX_CHANGE',$v('pFlowStepId'));
    get.addParam('f01',pThis.value); //Value that was checked
    get.addParam('f02',pThis.checked ? 'Y':'N'); // Checked Flag
    gReturn = get.get();
    $f('checkListDisp').innerHTML=gReturn;
    </SCRIPT>
    CHECKBOX List:
    <DIV id=checkListDisp>&P6_HOLDER.</DIV>
    I then created an application process on Demand called CHECKBOX_CHANGE with the below code
    DECLARE
    v_item_val NUMBER := htmldb_application.g_f01;
    v_checked_flag VARCHAR2 (1) := htmldb_application.g_f02;
    BEGIN
    IF v_checked_flag = 'Y' THEN
    -- Add to the list
    IF :P6_HOLDER IS NULL THEN
    :P6_HOLDER := ':' || v_item_val || ':';
    ELSE
    :P6_HOLDER := :P6_HOLDER || v_item_val || ':';
    END IF;
    ELSE
    -- Remove from the list
    :P6_HOLDER := REPLACE (:P6_HOLDER, ':' || v_item_val || ':', ':');
    END IF;
    -- Just for testing
    HTP.p (:P6_HOLDER);
    END;

    Hi
    Create a page level validation (fucntion returning boolean) and write code similar to following
    DECLARE
    v_count NUMBER := 0;
    BEGIN
    FOR i IN 1..APEX_APPLICATION.G_F01.COUNT LOOP
    IF APEX_APPLICATION.G_F01(i) IS NOT NULL THEN
    v_count := v_count + 1;
    END IF;
    END LOOP;
    IF v_count = 0 THEN
    RETURN TRUE;
    ELSE
    RETURN FALSE;
    END IF;
    END;I take it your report query is similar to following
    select apex_item.checkbox(1,"PK_CLMN") Tick, col2, col3 FROM tbl_nameCheers,
    Hari

  • Problem with checkbox group in row popin of table.

    In table row popin I have kept Check Box Group.I have mapped  the texts property of checkbox group to the attribute which is under the subnode of the table.the subnode properties singleton=false,selectioncardinality=0-n,and cardinality=0-n.
    if there are 'n' number of records in the table.each record will have its own row popin and in the row popin there is check box group.
    the check box group in the row popin  belongs to that perticular row.
    but the checkboxegroup values in row popins of all the  rows are getting changed to the row which is lead selected.
    The same scenario  (table in the row popin is showing the values corresponding to its perticular row and all the table values in popin are not getting changed to the one lead selected in the main table)is working fine with the table in place of  checkbox group in row popin with datasource property of table  binded to the subnode
    I cant trace out the problem with checkbox group in place of table.
    Please help me in this regard.I have to place check box group in place of table in row popin.
    Thanks and Regards
        Kiran Kumar K

    I have done the same thing successfully with normal check box ui element. Try using check box in your tabel cell editor instead of check box group.

  • Strange on - Wake on LAN (WOL) works with Win2K3, but not Windows 7

    Hi,
    I have a PC that I originally had Windows 2003 on.  With Win2K3, I can send a wakeonlan (magic) packet (WOL) and get it to power on remotely from my home network/LAN.
    I just installed Windows 7 Ultimate 64-bit, in a dual-boot configuration, i.e., so I can boot the machine to either Windows 7 Ultimate 64-bit or Win2K3.
    As mentioned, I can power the machine up remotely (from my home network/LAN), but if I've LAST booted into Win7, then shutdown, it doesn't respond to the WOL packet.
    I've confirmed that if I boot into Win2K3, then shutdown, the WOL works fine.
    I have another PC that has both Win2K3 and Windows 7 (also dual boot), and that works fine with WOL.
    One difference between the one that doesn't work vs. the one that works is that the one that works is a machine that I just built a couple of weeks ago, which uses an MSI 880gm-E43 motherboard.
    The one that doesn't work also has an MSI motherboard, but it's an older one, an MSI K9NBPM2-FID.
    I've cross-checked the various Windows power management settings between the one that works, and the one that doesn't work, but I just can't get WOL to work with Win7 on that older machine.  I've even turned the Windows Firewall off completely on the machine where WOL isn't working, but no matter what I've tried thus far, no joy :(...
    The only thing that I can think of is that the network card driver (it's the MS one, from the Win7 distribution) might not work with WOL, but I've checked, and it's the latest driver from MS (Nvidia Nforce Networking Controller - 10/17/2008 - 1.0.1.211), and MSI doesn't have a specific Win7 64-bit driver for this motherboard.
    So, I was wondering if anyone has any ideas about this?
    Is there some registry setting or something that might allow WOL to work?
    Thanks in advance,
    Jim

    Hi,
    Unbelievable!
    Just for the record, I got WOL working with the older machine, JUST after I posted the original msg.
    Here's what I did:
    - I was in Device Manager, and did Update Driver, but
    - I selected to let me choose, and then I checked the "Show Compatible devices" checkbox
    Then, a 2nd, older (10/6/2006 - 6.2.0.127) driver appeared, so I figured, "what the heck?" and tried that.  I then shut the machine down, and sent a WOL packet to it, and kind of forgot about it (machines in a different room), but a few minutes later "bing!", the machine had powered up and booted into Win7!!
    Anyway, as I said, for the record, and hope that this helps someone in the future.
    Jim

  • JButtons in JToolbar don't work with JApplet- why?

    I made a JApplet which has a toolbar, populated with burrons that manipulate data from text files. The programs works perfectly when it is not a JApplet. However, once I converted it to a JApplet it does nothing. The code was exactly the same, but, pressing buttons does nothing when it is an applet. here is the complete code;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    public class CSE extends JApplet implements ActionListener, ItemListener
    //GUI COMPONENTS
    //ToolBar components
    JToolBar mainSelect = new JToolBar("Materials");
    JButton materials;
    String materialNames[] = {"Fur Square", "Bolt of Linen", "Bolt of Damask", "Bolt of Silk", "Glob of Ectoplasm", "Steel Ingot", "Deldrimor Steel Ingot", "Monstrous Claw", "Monstrous Eye", "Monstrous Fang", "Ruby", "Lump of Charcoal", "Obsidian Shard", "Tempered Glass Vial", "Leather Square", "Elonian Leather Square", "Vial of Ink", "Roll of Parchment", "Roll of Vellum", "Spiritwood Plank", "Amber Chunk", "Jadeite Shard"};
    ImageIcon materialIcons;
    //Graphic components
    JDesktopPane mainGraph = new JDesktopPane();
    JPanel dailyGraph = new JPanel();
    JPanel weeklyGraph = new JPanel();
    JPanel finalPrices = new JPanel();
    Box graphs = Box.createHorizontalBox();
    //The Console
    JFrame CSEFrame = new JFrame();
    JSplitPane mainConsoleBackdrop = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    JSplitPane dataOut = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    JTextArea prediction = new JTextArea(10,10);
    JScrollPane predictionScroll;
    Box finalPricesLabels = Box.createVerticalBox();
    Box finalPricesLay = Box.createVerticalBox();
    JLabel finalBuy = new JLabel("Net Buy Price Change: 0.00");
    JLabel finalSell = new JLabel("Net Sell Price Change: 0.00");
    JLabel buySell = new JLabel("We recommend you: N/A");
    JTextArea priceUpdate = new JTextArea(10, 10);
    JTextArea priceUpdateWeekly = new JTextArea(10, 10);
    JScrollPane priceUScrollW;
    JScrollPane priceUScroll;
    JCheckBox weeklySelect = new JCheckBox("To show weekly price changes.", false);
    JCheckBox dailySelect = new JCheckBox("To show daily price changes.", true);
    ButtonGroup dataToShow = new ButtonGroup();
    //COMPONENTS FOR DATE; OBTAINING CORRECT FOLDER
    String days[] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
    Calendar calSource = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
    int day = calSource.get(Calendar.DAY_OF_MONTH);
    int month = calSource.get(Calendar.MONTH);
    int year = calSource.get(Calendar.YEAR);
    int monthCheck [] = {Calendar.JANUARY, Calendar.FEBRUARY, Calendar.MARCH, Calendar.APRIL, Calendar.MAY, Calendar.JUNE, Calendar.JULY, Calendar.AUGUST, Calendar.SEPTEMBER, Calendar.OCTOBER, Calendar.NOVEMBER, Calendar.DECEMBER};
    int dayS = day;
    int monthS = month;
    int yearS = year;
    //if there is file found
    boolean proceed = false;
    //int data for analysis
    int buyPrice;
    int currentBuyPrice;
    int sellPrice;
    int currentSellPrice;
    boolean weekly = false;
    //tools for parsing and decoding input
    String inputS = null;
    String s = null;
    Scanner [] week = new Scanner[7];
    Scanner scanner;
    int position = 0;
    //weekly tools
    String weekPos[] = {"Seventh", "Sixth", "Fifth", "Fourth", "Third", "Second", "First"};
    int dayOfWeek = 0; //0 = 7    1 = 6...
                    public JButton getToolBarButton(String s)
                        String imgLoc = "TBar Icons/" +s +".gif";
                        java.net.URL imgURL = CSE.class.getResource(imgLoc);
                        JButton button = new JButton();
                        button.setActionCommand(s);
                        button.setToolTipText(s);
                        button.addActionListener(this);
                        if(imgURL != null)
                            button.setIcon(new ImageIcon(imgURL, s));
                        else
                            button.setText(s);
                            System.err.println("Couldn't find; " +imgLoc);
                        return button;
                        public CSE()
                                   // super("Test CSE");
                                    //CSEFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                                    for(int x=0; x<materialNames.length; x++)
                                        materials = getToolBarButton(materialNames[x]);
                                        mainSelect.add(materials);
                                    //checkBoxes
                                    dataToShow.add(weeklySelect);
                                    dataToShow.add(dailySelect);
                                    weeklySelect.addItemListener(this);
                                    dailySelect.addItemListener(this);
                                    // sizes
                                    setSize(850, 850);
                                    //colors and fonts
                                    weeklyGraph.setBackground(new Color(250, 30, 40));
                                    dailyGraph.setBackground(new Color(100, 40, 200));
                                    //text Manip.
                                    prediction.setLineWrap(true);
                                    priceUpdate.setLineWrap(true);
                                    //scrolling
                                    predictionScroll = new JScrollPane(prediction, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                                    priceUScroll = new JScrollPane(priceUpdate, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                                    priceUScrollW = new JScrollPane(priceUpdateWeekly, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
                                    //main splitpane config.
                                    mainConsoleBackdrop.setOneTouchExpandable(true);
                                    mainConsoleBackdrop.setResizeWeight(.85);
                                    //placement and Layout
                                    //GraphLayout
                                    graphs.add(Box.createHorizontalStrut(10));
                                    graphs.add(dailyGraph);
                                    graphs.add(Box.createHorizontalStrut(10));
                                    graphs.add(weeklyGraph);
                                    graphs.add(Box.createHorizontalStrut(10));
                                    dataOut.setRightComponent(predictionScroll);
                                    //consoleData layout
                                    finalPricesLabels.add(Box.createVerticalStrut(10));
                                    finalPricesLabels.add(finalBuy);
                                    finalPricesLabels.add(Box.createVerticalStrut(10));
                                    finalPricesLabels.add(finalSell);
                                    finalPricesLabels.add(Box.createVerticalStrut(10));
                                    finalPricesLabels.add(buySell);
                                    finalPricesLay.add(finalPricesLabels);
                                    finalPricesLay.add(Box.createVerticalStrut(10));
                                    finalPricesLay.add(weeklySelect);
                                    finalPricesLay.add(dailySelect);
                                    finalPricesLay.add(priceUScroll);
                                    dataOut.setLeftComponent(finalPricesLay);
                                    mainConsoleBackdrop.setTopComponent(graphs);
                                    mainConsoleBackdrop.setBottomComponent(dataOut);
                                    getContentPane().add(mainConsoleBackdrop);
                                    getContentPane().add(mainSelect, BorderLayout.NORTH);
                                    //visibility
                                   // CSEFrame.setVisible(true);
                                    //return(CSEFrame);
                                        public void actionPerformed(ActionEvent e)
                                            getMonth();
                                            inputS = e.getActionCommand();
                                            FileReader newRead = null;
                                                    try {
                                                           newRead = new FileReader(monthS +"-" +dayS +"-" +yearS +"/" +inputS +".dat");
                                                           proceed = true;
                                                        catch(FileNotFoundException f)
                                                           System.out.println("File not found");
                                                           proceed = false;
                                          if(proceed)
                                          BufferedReader bufferedReader = new BufferedReader(newRead);
                                          scanner  = new Scanner(bufferedReader);
                                          scanner.useDelimiter("\n");
                                         //starts daily analysis
                                          getPrice(scanner);
                                        //starts weekly analysis
                                          weekly(inputS);
                                    public void itemStateChanged(ItemEvent e)
                                        if(weeklySelect.isSelected())
                                        priceUpdateWeekly.setText("");
                                        finalPricesLay.remove(priceUScroll);
                                        finalPricesLay.add(priceUScrollW);
                                        finalPrices.updateUI();
                                        else
                                            priceUpdate.setText("");
                                            finalPricesLay.remove(priceUScrollW);
                                            finalPricesLay.add(priceUScroll);
                                            finalPrices.updateUI();
                                    public void weekly(String inputS)
                                        weekly = true;
                                        for(int x = 0; x < 7; x++)
                                           dateToUse(month, day, year, (x+1));
                                            try
                                                    FileReader weeklySource = new FileReader(monthS +"-" +dayS +"-" +year +"/" +inputS +".dat");
                                                    BufferedReader weeklyBuffer = new BufferedReader(weeklySource);
                                                    week[x] = new Scanner(weeklyBuffer);
                                                    week[x].useDelimiter("\n");
                                                    getPrice(week[x]);
                                             catch(FileNotFoundException f)
                                                JOptionPane.showMessageDialog(this, "No such weekly files- going back;" +(x+1) +"days");
                                        weekly = false;
                                        dateReset();
                                    public void getPrice(Scanner scanner)
                                        while(scanner.hasNextLine())
                                            //puts into string the next scan token
                                            String s = scanner.next();
                                            //takes the scan toke above and puts it into an editable enviroment
                                            String [] data = s.split("\\s");
                                            for(position = 0; position < data.length; position++)
                                                        //Scanner test to make sure loop can finish, otherwise "no such line" error
                                                        if(scanner.hasNextLine()==false)
                                                        scanner.close();
                                                        break;
                                                           /*Starts data orignazation by reading from each perspective field
                                                            * 1 = day
                                                            * 2 = day of month
                                                            * 3 = month
                                                            * 4 = year
                                                           if(position == 0 && weekly == false)
                                                               String dayFromFile = data[position];
                                                                int dayNum = Integer.parseInt(dayFromFile);
                                                              priceUpdate.append(days[dayNum-1] +" ");
                                                           else if(position == 1  && weekly == false )
                                                              priceUpdate.append(data[position] + "/");
                                                           else if(position == 2 && weekly == false)
                                                              priceUpdate.append(data[position] + "/");
                                                            else if(position == 3 && weekly == false)
                                                                priceUpdate.append(data[position] +"\n");
                                                           //if it is in [buy] area, it prints and computes
                                                            else if(position == 7)
                                                                //obtains string for buy price and stores it, then prints it
                                                                String buy = data[position];
                                                            if(weekly == false)
                                                            priceUpdate.append("Buy: " +buy +"\n" );
                                                             //converts buy to string
                                                            currentBuyPrice = Integer.parseInt(buy);
                                                            //eliminates problems caused by no data from server- makes the price 0
                                                            if(currentBuyPrice < 0)
                                                                currentBuyPrice = 0;
                                                            //if it is greater it adds
                                                            if(currentBuyPrice > buyPrice)
                                                                     buyPrice += currentBuyPrice;
                                                            //if it is equal [there is no change] then it does nothing    
                                                            if(currentBuyPrice == buyPrice)
                                                                buyPrice +=0;
                                                            //if there is a drop, it subtracts
                                                               else
                                                                   buyPrice -= currentBuyPrice;
                                                            //if it is in [sell] area, it prints, and resets the position to zero because line is over
                                                            else if(position == 8)
                                                                //puts sell data into string and prints it
                                                                String sell = data[position];
                                                                if(weekly == false)
                                                                priceUpdate.append("Sell: " + sell +"\n");
                                                                //turns sell data into int.
                                                              currentSellPrice = Integer.valueOf(sell).intValue();;
                                                            //gets rid of problems caused by no data on server side- makes it 0 
                                                            if(currentSellPrice < 0)
                                                                currentSellPrice = 0;
                                                            //adds if there is an increase
                                                            if(currentSellPrice > sellPrice)
                                                                     sellPrice += currentSellPrice;
                                                            //does nothing if it is the same    
                                                            if(currentSellPrice == sellPrice)
                                                                sellPrice +=0;
                                                            //subtracts if there is drop
                                                               else
                                                                   sellPrice -= currentSellPrice;
                                                                //further protection against "No such line" and moves it down
                                                               if(scanner.hasNextLine() == true)
                                                                scanner.nextLine();
                                                                //if scanner is finished, prints out all lines
                                                               if(scanner.hasNextLine() == false && weekly == false)
                                                                finalBuy.setText("Net Buy Price Change: "+buyPrice);
                                                                finalSell.setText("Net Sell Price Change: " +sellPrice);
                                                                buyPrice = 0;
                                                                sellPrice = 0;
                                                                position = data.length;
                                                               else if(scanner.hasNextLine() == false && weekly == true)
                                                                   priceUpdateWeekly.append("\n" +weekPos[dayOfWeek] +" day of the week ended with; \nBuy Price;" +buyPrice +"\nSell Price;" +sellPrice);
                                                                   buyPrice = 0;
                                                                   sellPrice = 0;
                                                                   position = data.length;
                                                                   dayOfWeek++;
                                                                   if(dayOfWeek > 6)
                                                                   dayOfWeek = 0;
                                public void getMonth()
                                    for(int x=0; x < monthCheck.length; x++)
                                        if(month == monthCheck[x])
                                              monthS = (x+1);
                                              x = monthCheck.length;
                                 public void dateToUse(int month, int day, int year, int increment)
                                 //set day of source
                                  dayS = (day - increment);
                                //if day of source is less then O then we have moved to another month 
                                if(dayS <= 0)
                                        //checks the difference between how much we have incremented and the day we have started; this tells us how far into the new month we are
                                        int incrementDay = increment - day;
                                        //decrements month
                                        monthS--;
                                        //if month is less then zero, then we have moved into another year and month has become 12
                                        if(monthS <= 0)
                                            yearS--;
                                            monthS = 12;
                                        //the following looks at the current month and if it goes below it assigns the day to the proper ammount of days of the month before minus the days into the month
                                           if(month == 3)
                                               dayS = 28 - incrementDay;
                                           else if(month == 5 || month == 7)
                                               dayS = 29 - incrementDay;
                                           else if(month == 2 || month == 4 || month == 6 || month == 9 || month == 11)
                                               dayS = 31 - incrementDay;
                                            else
                                                dayS = 30 - incrementDay;
                               //resets the source date to the current date once data from the week has been reached
                                public void dateReset()
                                    dayS = day;
                                    monthS = month;
                                    yearS = year;
                     public void init()
                         //JFrame frame = new CSEFrameSet();
                        // this.setContentPane(CSEFrameSet());
                        CSE aCSE = new CSE();
    public static void main(String [] args)
    CSE cs = new CSE();
    }I have tried uploading it to a server, running it from appletviewer, and locally using the .HTML file. The GUI works fine, everything is there, however, pressing the buttons does nothing.
    Can you not use the Scanners and such with JApplets?
    Yes, the directories are good.
    EDIT EDIT EDIT; OK, it works with appletviewer, but still doesn't work when it is published.
    Message wa

    I can't seem to edit the post anymore, here it is again;
    import java.io.*;
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    public class CSE extends JApplet implements ActionListener, ItemListener
    //GUI COMPONENTS
    //ToolBar components
    JToolBar mainSelect = new JToolBar("Materials");
    JButton materials;
    String materialNames[] = {"Fur Square", "Bolt of Linen", "Bolt of Damask", "Bolt of Silk", "Glob of Ectoplasm", "Steel Ingot", "Deldrimor Steel Ingot", "Monstrous Claw", "Monstrous Eye", "Monstrous Fang", "Ruby", "Lump of Charcoal", "Obsidian Shard", "Tempered Glass Vial", "Leather Square", "Elonian Leather Square", "Vial of Ink", "Roll of Parchment", "Roll of Vellum", "Spiritwood Plank", "Amber Chunk", "Jadeite Shard"};
    ImageIcon materialIcons;
    //Graphic components
    JDesktopPane mainGraph = new JDesktopPane();
    JPanel dailyGraph = new JPanel();
    JPanel weeklyGraph = new JPanel();
    JPanel finalPrices = new JPanel();
    Box graphs = Box.createHorizontalBox();
    //The Console
    JFrame CSEFrame = new JFrame();
    JSplitPane mainConsoleBackdrop = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
    JSplitPane dataOut = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    JTextArea prediction = new JTextArea(10,10);
    JScrollPane predictionScroll;
    Box finalPricesLabels = Box.createVerticalBox();
    Box finalPricesLay = Box.createVerticalBox();
    JLabel finalBuy = new JLabel("Net Buy Price Change: 0.00");
    JLabel finalSell = new JLabel("Net Sell Price Change: 0.00");
    JLabel buySell = new JLabel("We recommend you: N/A");
    JTextArea priceUpdate = new JTextArea(10, 10);
    JTextArea priceUpdateWeekly = new JTextArea(10, 10);
    JScrollPane priceUScrollW;
    JScrollPane priceUScroll;
    JCheckBox weeklySelect = new JCheckBox("To show weekly price changes.", false);
    JCheckBox dailySelect = new JCheckBox("To show daily price changes.", true);
    ButtonGroup dataToShow = new ButtonGroup();
    //COMPONENTS FOR DATE; OBTAINING CORRECT FOLDER
    String days[] = {"Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"};
    Calendar calSource = new GregorianCalendar(TimeZone.getTimeZone("GMT"));
    int day = calSource.get(Calendar.DAY_OF_MONTH);
    int month = calSource.get(Calendar.MONTH);
    int year = calSource.get(Calendar.YEAR);
    int monthCheck [] = {Calendar.JANUARY, Calendar.FEBRUARY, Calendar.MARCH, Calendar.APRIL, Calendar.MAY, Calendar.JUNE, Calendar.JULY, Calendar.AUGUST, Calendar.SEPTEMBER, Calendar.OCTOBER, Calendar.NOVEMBER, Calendar.DECEMBER};
    int dayS = day;
    int monthS = month;
    int yearS = year;
    //if there is file found
    boolean proceed = false;
    //int data for analysis
    int buyPrice;
    int currentBuyPrice;
    int sellPrice;
    int currentSellPrice;
    boolean weekly = false;
    //tools for parsing and decoding input
    String inputS = null;
    String s = null;
    Scanner [] week = new Scanner[7];
    Scanner scanner;
    int position = 0;
    //weekly tools
    String weekPos[] = {"Seventh", "Sixth", "Fifth", "Fourth", "Third", "Second", "First"};
    int dayOfWeek = 0; //0 = 7 1 = 6...
    public JButton getToolBarButton(String s)
    String imgLoc = "TBar Icons/" +s +".gif";
    java.net.URL imgURL = CSE.class.getResource(imgLoc);
    JButton button = new JButton();
    button.setActionCommand(s);
    button.setToolTipText(s);
    button.addActionListener(this);
    if(imgURL != null)
    button.setIcon(new ImageIcon(imgURL, s));
    else
    button.setText(s);
    System.err.println("Couldn't find; " +imgLoc);
    return button;
    public CSE()
    // super("Test CSE");
    //CSEFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    for(int x=0; x<materialNames.length; x++)
    materials = getToolBarButton(materialNames[x]);
    mainSelect.add(materials);
    //checkBoxes
    dataToShow.add(weeklySelect);
    dataToShow.add(dailySelect);
    weeklySelect.addItemListener(this);
    dailySelect.addItemListener(this);
    // sizes
    setSize(850, 850);
    //colors and fonts
    weeklyGraph.setBackground(new Color(250, 30, 40));
    dailyGraph.setBackground(new Color(100, 40, 200));
    //text Manip.
    prediction.setLineWrap(true);
    priceUpdate.setLineWrap(true);
    //scrolling
    predictionScroll = new JScrollPane(prediction, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    priceUScroll = new JScrollPane(priceUpdate, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    priceUScrollW = new JScrollPane(priceUpdateWeekly, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    //main splitpane config.
    mainConsoleBackdrop.setOneTouchExpandable(true);
    mainConsoleBackdrop.setResizeWeight(.85);
    //placement and Layout
    //GraphLayout
    graphs.add(Box.createHorizontalStrut(10));
    graphs.add(dailyGraph);
    graphs.add(Box.createHorizontalStrut(10));
    graphs.add(weeklyGraph);
    graphs.add(Box.createHorizontalStrut(10));
    dataOut.setRightComponent(predictionScroll);
    //consoleData layout
    finalPricesLabels.add(Box.createVerticalStrut(10));
    finalPricesLabels.add(finalBuy);
    finalPricesLabels.add(Box.createVerticalStrut(10));
    finalPricesLabels.add(finalSell);
    finalPricesLabels.add(Box.createVerticalStrut(10));
    finalPricesLabels.add(buySell);
    finalPricesLay.add(finalPricesLabels);
    finalPricesLay.add(Box.createVerticalStrut(10));
    finalPricesLay.add(weeklySelect);
    finalPricesLay.add(dailySelect);
    finalPricesLay.add(priceUScroll);
    dataOut.setLeftComponent(finalPricesLay);
    mainConsoleBackdrop.setTopComponent(graphs);
    mainConsoleBackdrop.setBottomComponent(dataOut);
    getContentPane().add(mainConsoleBackdrop);
    getContentPane().add(mainSelect, BorderLayout.NORTH);
    //visibility
    // CSEFrame.setVisible(true);
    //return(CSEFrame);
    public void actionPerformed(ActionEvent e)
    getMonth();
    inputS = e.getActionCommand();
    FileReader newRead = null;
    try {
    newRead = new FileReader(monthS +"-" +dayS +"-" +yearS +"/" +inputS +".dat");
    proceed = true;
    catch(FileNotFoundException f)
    System.out.println("File not found");
    proceed = false;
    if(proceed)
    BufferedReader bufferedReader = new BufferedReader(newRead);
    scanner = new Scanner(bufferedReader);
    scanner.useDelimiter("\n");
    //starts daily analysis
    getPrice(scanner);
    //starts weekly analysis
    weekly(inputS);
    public void itemStateChanged(ItemEvent e)
    if(weeklySelect.isSelected())
    priceUpdateWeekly.setText("");
    finalPricesLay.remove(priceUScroll);
    finalPricesLay.add(priceUScrollW);
    finalPrices.updateUI();
    else
    priceUpdate.setText("");
    finalPricesLay.remove(priceUScrollW);
    finalPricesLay.add(priceUScroll);
    finalPrices.updateUI();
    public void weekly(String inputS)
    weekly = true;
    for(int x = 0; x >< 7; x++)
    dateToUse(month, day, year, (x+1));
    try
    FileReader weeklySource = new FileReader(monthS +"-" +dayS +"-" +year +"/" +inputS +".dat");
    BufferedReader weeklyBuffer = new BufferedReader(weeklySource);
    week[x] = new Scanner(weeklyBuffer);
    week[x].useDelimiter("\n");
    getPrice(week[x]);
    catch(FileNotFoundException f)
    JOptionPane.showMessageDialog(this, "No such weekly files- going back;" +(x+1) +"days");
    weekly = false;
    dateReset();
    public void getPrice(Scanner scanner)
    while(scanner.hasNextLine())
    //puts into string the next scan token
    String s = scanner.next();
    //takes the scan toke above and puts it into an editable enviroment
    String [] data = s.split("\\s");
    for(position = 0; position < data.length; position++)
    //Scanner test to make sure loop can finish, otherwise "no such line" error
    if(scanner.hasNextLine()==false)
    scanner.close();
    break;
    /*Starts data orignazation by reading from each perspective field
    * 1 = day
    * 2 = day of month
    * 3 = month
    * 4 = year
    if(position == 0 && weekly == false)
    String dayFromFile = data[position];
    int dayNum = Integer.parseInt(dayFromFile);
    priceUpdate.append(days[dayNum-1] +" ");
    else if(position == 1 && weekly == false )
    priceUpdate.append(data[position] + "/");
    else if(position == 2 && weekly == false)
    priceUpdate.append(data[position] + "/");
    else if(position == 3 && weekly == false)
    priceUpdate.append(data[position] +"\n");
    //if it is in [buy] area, it prints and computes
    else if(position == 7)
    //obtains string for buy price and stores it, then prints it
    String buy = data[position];
    if(weekly == false)
    priceUpdate.append("Buy: " +buy +"\n" );
    //converts buy to string
    currentBuyPrice = Integer.parseInt(buy);
    //eliminates problems caused by no data from server- makes the price 0
    if(currentBuyPrice < 0)
    currentBuyPrice = 0;
    //if it is greater it adds
    if(currentBuyPrice > buyPrice)
    buyPrice += currentBuyPrice;
    //if it is equal [there is no change] then it does nothing
    if(currentBuyPrice == buyPrice)
    buyPrice +=0;
    //if there is a drop, it subtracts
    else
    buyPrice -= currentBuyPrice;
    //if it is in [sell] area, it prints, and resets the position to zero because line is over
    else if(position == 8)
    //puts sell data into string and prints it
    String sell = data[position];
    if(weekly == false)
    priceUpdate.append("Sell: " + sell +"\n");
    //turns sell data into int.
    currentSellPrice = Integer.valueOf(sell).intValue();;
    //gets rid of problems caused by no data on server side- makes it 0
    if(currentSellPrice < 0)
    currentSellPrice = 0;
    //adds if there is an increase
    if(currentSellPrice > sellPrice)
    sellPrice += currentSellPrice;
    //does nothing if it is the same
    if(currentSellPrice == sellPrice)
    sellPrice +=0;
    //subtracts if there is drop
    else
    sellPrice -= currentSellPrice;
    //further protection against "No such line" and moves it down
    if(scanner.hasNextLine() == true)
    scanner.nextLine();
    //if scanner is finished, prints out all lines
    if(scanner.hasNextLine() == false && weekly == false)
    finalBuy.setText("Net Buy Price Change: "+buyPrice);
    finalSell.setText("Net Sell Price Change: " +sellPrice);
    buyPrice = 0;
    sellPrice = 0;
    position = data.length;
    else if(scanner.hasNextLine() == false && weekly == true)
    priceUpdateWeekly.append("\n" +weekPos[dayOfWeek] +" day of the week ended with; \nBuy Price;" +buyPrice +"\nSell Price;" +sellPrice);
    buyPrice = 0;
    sellPrice = 0;
    position = data.length;
    dayOfWeek++;
    if(dayOfWeek > 6)
    dayOfWeek = 0;
    public void getMonth()
    for(int x=0; x < monthCheck.length; x++)
    if(month == monthCheck[x])
    monthS = (x+1);
    x = monthCheck.length;
    public void dateToUse(int month, int day, int year, int increment)
    //set day of source
    dayS = (day - increment);
    //if day of source is less then O then we have moved to another month
    if(dayS <= 0)
    //checks the difference between how much we have incremented and the day we have started; this tells us how far into the new month we are
    int incrementDay = increment - day;
    //decrements month
    monthS--;
    //if month is less then zero, then we have moved into another year and month has become 12
    if(monthS <= 0)
    yearS--;
    monthS = 12;
    //the following looks at the current month and if it goes below it assigns the day to the proper ammount of days of the month before minus the days into the month
    if(month == 3)
    dayS = 28 - incrementDay;
    else if(month == 5 || month == 7)
    dayS = 29 - incrementDay;
    else if(month == 2 || month == 4 || month == 6 || month == 9 || month == 11)
    dayS = 31 - incrementDay;
    else
    dayS = 30 - incrementDay;
    //resets the source date to the current date once data from the week has been reached
    public void dateReset()
    dayS = day;
    monthS = month;
    yearS = year;
    public void init()
    //JFrame frame = new CSEFrameSet();
    // this.setContentPane(CSEFrameSet());
    CSE aCSE = new CSE();
    public static void main(String [] args)
    CSE cs = new CSE();
    }Message was edited by:
    Cybergasm

  • Display PDF in browser not working with Customization Wizard

    I used the Customization Wizard to generate a transform. One of the settings I specified was to display the PDF in the browser. The checkbox is checked, both in the Customization Wizard Console and in Acrobat's Preferences dialog after the installation completes on a clean workstation. Yet, the PDFs all display in a separately launched Acrobat session. They continue to do so until the user brings up the Preferences dialog, clears the checkbox and then rechecks it. When that is done, the installer dialog runs briefly (like something else is getting installed) and then Acrobat behaves as desired.
    Any help would be appreciated!

    One workaround for getting Dreamweaver to work with Firefox 3.6 is Automator. I was reading a mozilla users thread  about this; mozilla considers the new way better (no spaces or special  characters in path names). I tried this, but still had problems. But, the following Automator app does works for me.
    First,  if you haven't already, set the default broswer in Safari's preferences  to Firefox.
    Open  Automator and set up the following workflow:
    Get Specified Finder  Items - add the DW doc you want to preview in Firefox.
    Display  Webpages - this opens Safari (or the default broswer set  in Safari's prefences).
    Save the workflow as an application (ex:  StandardBrowser.app)
    Add the new app to the DW browser list.
    The path  (Get Specified Finder Items) needs to be edited for each page you want to  preview. I suppose you could create an Automator app for each page and  add them to the browser list, but I prefer to just edit the Automator  app for each page. Just reopen the app in Automator and add a new path to  Get Specified Finder Items.
    The poster who gave me this tip said on his 10.6 machine that step one will  work just by itself and that step two will work just by  itself. Neither one of the one step solutions worked for me (10.5), but the two step Automator app above does.

  • MinWidth not working with Scroller container

    So, this might be a dumb question from a relative Flex newbie, but I haven't been able to figure it out for the last few hours, after trying many different combinations.  In a scrolling Group, I'm able to get the vertical scrolling to behave exactly as I want it to, but the horizontal scrolling just doesn't seem to function no matter what I do.
    Examples from Design view:
    As you can see, the content is larger than minHeight of 800, so the scrollbar appears...hooray!  Now, for the horizontal scrolling....
    Horrible, ugly mega-fail.  (Note also that only some of the text areas actually scale, despite the fact that they're all coded identically...what's up with that?!).  I do realize that each of the nested border containers have children with fixed heights, and I'm using fluid widths throughout this layout..which may account for the different behavior.  But isn't that the whole point of the minWidth property?  To create a limit at which the scrollbars will appear?  I know I could force the Scroller size to 300, but then it would limit the size of the viewport to a maximum of 300, which is the last thing I want.  Basically, I need some help in understanding how the new Scroller system works with fluid layouts.  In MX, minWidth/minHeight just worked....*sigh*
    Can anyone help me fix this?  Please stop me from losing faith in Abode's ability to create APIs that function inituitively.
    Here's the code:
    <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    xmlns:mx="library://ns.adobe.com/flex/mx" dropShadowVisible="false"  width="100%" height="100%">
    <fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:Scroller horizontalScrollPolicy="on" verticalScrollPolicy="auto" width="100%" height="100%">
    <s:Group width="100%" height="100%" minHeight="800" minWidth="300">
    <s:layout>
    <s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="10" paddingBottom="10" gap="20"/>
    </s:layout>
    <s:BorderContainer id="choiceContainer" width="100%" minWidth="300" height="150" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
    <s:layout>
    <s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="10" gap="10"/>
    </s:layout>
    <s:Label text="Learner Choice" fontWeight="bold" fontSize="14"/>
    <s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Choice Label" width="100" textAlign="right"/>
    <s:TextArea height="100%" width="100%" id="choiceLabelField" editable="true"/>
    </s:HGroup>
    <s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Full Choice" width="100" textAlign="right"/>
    <s:TextArea width="100%" height="100%" id="choiceBodyField"/>
    </s:HGroup>
    </s:BorderContainer>
    <s:BorderContainer id="resultsContainer" width="100%" minWidth="300" height="275" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
    <s:layout>
    <s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="10" gap="10"/>
    </s:layout>
    <s:Label text="Outcomes"  fontWeight="bold" fontSize="14"/>
    <s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Coach Feedback" width="100" textAlign="right"/>
    <s:TextArea width="100%" height="100%" id="feedbackBodyField"/>
    </s:HGroup>
    <s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Customer Says" width="100" textAlign="right"/>
    <s:TextArea width="100%" height="100%" id="saysField"/>
    </s:HGroup>
    <s:HGroup width="100%" height="50" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Customer Thinks" width="100" textAlign="right"/>
    <s:TextArea width="100%" height="100%" id="thinksField"/>
    </s:HGroup>
    <s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center" gap="20">
    <s:Label text="Satisfaction Change: "/>
    <s:NumericStepper id="satisfactionStepper" maximum="100" minimum="-100"/>
    <s:Label text="Expression: "/>
    <s:DropDownList id="expressionDropDown" width="100"/>
    </s:HGroup>
    </s:BorderContainer>
    <s:BorderContainer id="nextActionContainer" width="100%" minWidth="300"  height="130" cornerRadius="10" backgroundColor="0xDDDDDD" borderWeight="0" dropShadowVisible="false">
    <s:layout>
    <s:VerticalLayout paddingLeft="10" paddingRight="10" paddingTop="20" paddingBottom="20" gap="20"/>
    </s:layout>
    <s:Label text="Next Action"  fontWeight="bold" fontSize="14"/>
    <s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center">
    <s:Label text="Link to " width="100" textAlign="right"/>
    <s:DropDownList id="linkToDropDown" width="100%"/>
    </s:HGroup>
    <s:HGroup width="100%" height="20" verticalAlign="middle" horizontalAlign="center" gap="20">
    <s:CheckBox id="alertCheckBox" label="Show pop-up alert before learner advances: "/>
    <s:Button id="editAlertButton" label="Edit Alert" enabled="{alertCheckBox.selected}"/>
    </s:HGroup>
    </s:BorderContainer>
    </s:Group>
    </s:Scroller>
    </s:BorderContainer>

    There have been a few bugs reported with Scroller.  It is trying to take on
    some new capabilities, like resizing content so it doesn't get occluded by
    the scrollbars and there's been some bugs in there.  In MX, the scrollbars
    just showed up on top of your content, which was undesireable for many
    folks.

  • Report with checkbox to PDF-File with BI Publisher

    Hello,
    I am able to create reports in APEX to create PDF-Files. We are using the BI Publisher.
    Now we have to design a rft-Template with a checkbox. In BI Publisher it works with the checkbox greate, but if I create in APEX report and a layout the checkbox is not display in the PDF-File.
    Does anyone has a solution for that?
    Regards,
    Mark

    I have a same issue ...
    How you are calling a bi report from apex....?
    Please help me...
    ty

  • Designer 7.0  form working with Reader 7.0.5 but not Reader 7.0.8

    Hello everyone,
    I was wondering if anyone has had a problem with a formed created using Designer 7.0 that was working with Reader 7.0.5 but no longer functions with Reader 7.0.8?
    The form consists of a numeric textbox N1 and 2 checkboxes C1[0] and C1[1].
    All code is done using FormCalc.
    Here is the situation: if the number in the numeric box is blank or not greater then zero, then neither check box can be checked. Both check boxes can not be checked at the same time. If the value in the numeric box is greater then zero, the checkboxes may or may not be checked (again both can not be checked at the same time).
    N1 has code the following code in its exit event:
    if (($.isNull) or ($.rawValue le 0)) then
    C1[0].rawValue = 0 //if not positive value, checkboxes must be blank
    C1[1].rawValue = 0
    endif
    C1[0] has the following code in its click and exit event
    if (C1[0].rawValue == 1) then
    C1[1].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    $.rawValue = 0 //uncheck if N1 is not positive
    endif
    C1[1] has the following code in its click and exit event
    if (C1[1].rawValue == 1) then
    C1[0].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    C1[1].rawValue = 0 //uncheck if N1 is not positive
    endif
    The above code worked exactly as described when the form was used in Reader 7.0.5.
    Under Reader 7.0.8 the following happens:
    if N1 is blank or less then or equal to zero, both checkboxes can be checked at the same time (this should not happen at all) but neither can be unchecked
    if N1 is positive the code (and checkboxes) function as described.
    I am not sure if this is a Designer issue or a Professional/Reader issue, so I am posting this here as well as in the other 2 spots.
    Any help is greatly appreciated,
    Ben

    Chris,
    Thank you for the sample you provided. First, I must apologize for not mentioning that there was additional code in the Click event. I thought I had removed it from my form, but apparently I had not.
    I have compare the sample you provided to my form. I noticed several differences between them. First was that you used Designer 7.1 to create your sample, whereas I used Designer 7.0. I do not believe that this will have an impact, although it is possible. Also, in your sample, then click and exit events both need to contain the same "check" code. Your sample has one IF statement in the click event and one IF statement in the exit event. To match my form code, the Click and Exit events together need to contain both IF statements. My form originally contained the code in the Change event also.
    i.e. C1[0] has the following code in both its Click, Exit and Change events
    if (C1[0].rawValue == 1) then
    C1[1].rawValue = 0 //C1[0] and C1[1] can not both be checked
    endif
    if ((N1.isNull) or (N1.rawValue le 0)) then
    $.rawValue = 0 //uncheck if N1 is not positive
    endif
    and similarly for C1[1].
    Based off your sample, I did some more digging and found that the problem is caused by the Change event for the checkboxes. I have removed the code from the Change event and now the form works as desired.
    So, if the Change event has NO code, and if the Click and Exit events for the checkboxes have both IF statements the overall behavior (as specified earlier) is identical (and what I am looking for) for both Reader 7.0.5 and 7.0.8.
    Now, if I add the IF statements to the Change event (without removing them from Click and Exit), the behavior in Reader 7.0.5 does not change (works as specified). In Reader 7.0.8, the checkboxes can not be unchecked if N1 is blank.
    So my questions now become:
    1) What has actually changed between Reader 7.0.5 and 7.0.8 (i.e. more detailed description than the generic release notes)?
    2) Which one actually exhibits the correct behavior?
    3) If this is a change to the event model, is this documented anywhere?
    Thanks again,
    Ben

  • Search not working with multiple select in dropdown field

    Hello,
    Please first visit below site for searching form on left side.
    http://diventarepartner.unicaimmobili.com/home-page_copy_dynamic
    There is a field called Tipologia which is dropdown menu with checkbox (multiple select). Choose more than one checkbox and its automatic append with comma in text field which is customized using javascript. Now then if you submit button then its not working as our products.
    Now for this there is a custom field in admin in web apps items. This field is same for all items and values are different for all items like that which you can see above dropdown checkboxes value.
    Now my question Is it possible that for that one field in admin which has different value for different items and when i search from website and checked that cehck boxes and it search for all different items ??
    For example in admin suppose 2 items which has different value for that one field. Suppose one has value called Appartamento and other is Villa. Now from search form which is on website, that dropdown checkboxes, if i select these two values (Appartamento and Villa) from these and then search, it will display that both items from web apps ???
    Is it possible ??? Can you help me for this ???
    Waiting for reply. Thanks in advance.

    Your link doesn't work. Do you mind reporting it?

  • Horizontal table with checkboxes

    Hi,
    I need to create a horizontal table. With this i mean the column aren't on top but on the left side and the data goed from top to bottom. You often see this construction to make it easy for user to compare values. I also need to display in the last row for every column a checkbox.....as to select that data column
    Something like this:
                  | X | Y |
    name     |    |    |
    descr     |    |    |
                  | 0 | 0  |
    I managed to create the table dynamically but i cant seem to find a way to a the checkboxes because the go by column and not by row. I tried adding them in a seperate container underneath but i can't seem to get hold of the column widths at runtime.
    Another possibility which i thought maybe would work, is not to work with a table but to simulate this and just create it with a container with Gridlayout and filling it like a grid. Dont know if this woulr workd though...
    Any thoughts or idea's?
    Much thanks & regards,
    Hugo

    Hi Hugo,
    This is the complete code for achiving a simple sceanrio where you would have
    both checkBox and textview in the same column.
    if(firstTime)
             int elementIndex =0;
             IWDTable table = (IWDTable)view.getElement("Table");
             for(int i=0;i<wdContext.nodeTableNode().size();i++){
             IWDTableColumn tableColumn = (IWDTableColumn)view.createElement(IWDTableColumn.class,"tableCol"+elementIndex+i);
              elementIndex++;
             Iterator iterator = wdContext.nodeTableNode().getNodeInfo().iterateAttributes();
             while(iterator.hasNext()){
                   IWDAttributeInfo attInfo = (IWDAttributeInfo)iterator.next();
                   IPrivateAView.ITableNodeElement tableNodeElement = wdContext.nodeTableNode().getTableNodeElementAt(i);
                   IWDTableStandardCell stanCell = (IWDTableStandardCell)view.createElement(IWDTableStandardCell.class,"standardCell"+elementIndex);
                   elementIndex++;     
                  if(attInfo.getDataType().getLocalName().equalsIgnoreCase("string")){
                        IWDTextView textView = (IWDTextView)view.createElement(IWDTextView.class,"textView"+elementIndex);
                        textView.bindText(attInfo);
                        textView.setVisible(WDVisibility.VISIBLE);
                        elementIndex++;
                        stanCell.setEditor(textView);
                        stanCell.setVariantKey(elementIndex+ "String");
                  else{
                        IWDCheckBox checkBox = (IWDCheckBox)view.createElement(IWDCheckBox.class,"checkBox"+elementIndex);
                        checkBox.bindChecked(attInfo);
                        checkBox.setVisible(WDVisibility.VISIBLE);
                        elementIndex++;
                        stanCell.setEditor(checkBox);
                        stanCell.setVariantKey(elementIndex+ "Boolean");
                   tableColumn.addCellVariant(stanCell);
                   tableColumn.setVisible(WDVisibility.VISIBLE);
                   table.addColumn(tableColumn);
             table.bindDataSource(wdContext.nodeTableNode().getNodeInfo());
    Regarding the the data source in this case you can create a node i.e table Node with least an attribute of type String and another of type boolean.Create and add
    node elements in wdDoInit() for the same.
    Regards
    Amit

Maybe you are looking for

  • Special Characters in Long Text Field of FI Documents

    Hi, Users entered the following in the long text field of a FI document: "Settlement of claims for direct shipment (Refer to XXX/YY-053/2009, XXX/YY-018/2009, XX2120000031 and X2120000033)" The default editor used is the one which looks like the MS W

  • No songs yet memory is used

    I just got a new ipod nano (1 GB) and when i connected it to my computer, it said that i have already used 887.7 mb of memory yet i haven't added any songs or photos yet! The playlist is empty, so what exactly is taking up all of this memory? Thanks

  • Need Help with 403 error

    Hello I have just installed the new XAMPP 1.8.1 and I have followed all the instructions from last time and I cant seem to get my website to work in Live View. The last time I had a problem I started this thread http://forums.adobe.com/message/337622

  • Schedule line movement type assignment

    Dear Experts Here in stock transport process, the schedule line being used is given. that schedule line, in configuration, has movement type 641 (stock in transit) in 'movement type' field and 647 (stock in transit) in 'movement type 1-step' field. i

  • Color Correction -- render does NOT match preview

    Something seems very odd about Color Correction. I select a clip that is too dark. I adjust the slider to lighten it up while previewing. It looks perfect. Now I APPLY and the rendered video is very different. Typically now way too light. So I adjust