Populate datagrid and draw linechart based on xmlList

I am generating dynamic xml structure like this
<root>
  <OPVector>
    <Distance>0</Distance>
    <Height1>100</Height1>
    <Height2>200</Height2>
    <Height3>300</Height3>
  </OPVector>
  <OPVector>
    <Distance>100</Distance>
    <Height1>200</Height1>
    <Height2>300</Height2>
    <Height3>400</Height3>
  </OPVector>
  <OPVector>
    <Distance>200</Distance>
    <Height1>300</Height1>
    <Height2>400</Height2>
    <Height3>500</Height3>
  </OPVector>
</root>
What i have to do is to populate data grid based on this xml structure and draw a line chart where distance is category axis (x-axis) and Height1, Height2 etc are line series . No of Height fields depends on how many height values are entered by user (in text field Height1, Height2, Height3, Height4, Height5,Height6).
Given is the code of my application ....
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="905" height="482" creationComplete="init();">
<mx:Script>
<![CDATA[
import mx.events.IndexChangedEvent;
private var dataProvider:XMLList = new XMLList();
private var initDist:int ;
private var offset:int  ;
private var finalDist:int;
private var height1:int;
private var height2:int;
private var height3:int;
private var height4:int;
private var height5:int;
private var height6:int;
private var heat:int;
private var dataOP:XMLList;
public function init():void{
initDist = parseInt(txtInitDist.text);
offset = parseInt(txtOffset.text);
finalDist = parseInt(txtFinalDist.text);
height2 = parseInt(txtHeight1.text);
height2 = parseInt(txtHeight2.text);
height3 = parseInt(txtHeight3.text);
height4 = parseInt(txtHeight4.text);
height5 = parseInt(txtHeight5.text);
height6 = parseInt(txtHeight6.text);
heat = parseInt(txtHeat.text);
public function getOP():void{
dataOP = createXMLObject();
currentState='stateOP';
trace(dataOP.toXMLString());
} // public function getOP():void{
public function createXMLObject():XMLList{
var data:XMLList = XMLList(<root></root>);
for (var i:int=initDist;i<=finalDist;i+=offset){
var x:XMLList = new XMLList(<OPVector></OPVector>);
var distance:String = "<Distance>"+i+"</Distance>";
var strHeight1:String = "<Height1>"+(parseInt(txtHeight1.text)+i)+"</Height1>";
var strHeight2:String = "<Height2>"+(parseInt(txtHeight2.text)+i)+"</Height2>";
var strHeight3:String = "<Height3>"+(parseInt(txtHeight3.text)+i)+"</Height3>";
var strHeight4:String = "<Height4>"+(parseInt(txtHeight4.text)+i)+"</Height4>";
var strHeight5:String = "<Height5>"+(parseInt(txtHeight5.text)+i)+"</Height5>";
var strHeight6:String = "<Height6>"+(parseInt(txtHeight6.text)+i)+"</Height6>";
x.appendChild(distance);
if (txtHeight1.text != ""){
x.appendChild(strHeight1);
if (txtHeight2.text != ""){
x.appendChild(strHeight2);
if (txtHeight3.text != ""){
x.appendChild(strHeight3);
if (txtHeight4.text != ""){
x.appendChild(strHeight4);
if (txtHeight5.text != ""){
x.appendChild(strHeight5);
if (txtHeight6.text != ""){
x.appendChild(strHeight6);
data.appendChild(x);
} // for (var i:int=initDist;i<finalDist;i+=offset){
return data;
} // public function createXMLObject():void
]]>
</mx:Script>
<!-- States Definition -->
<mx:states>
<mx:State name="stateOP">
<mx:RemoveChild target="{btnOP}"/>
<mx:RemoveChild target="{btnThermal}"/>
<mx:RemoveChild target="{txtHeight5}"/>
<mx:RemoveChild target="{txtHeight6}"/>
<mx:RemoveChild target="{txtFinalDist}"/>
<mx:RemoveChild target="{label1}"/>
<mx:RemoveChild target="{label2}"/>
<mx:RemoveChild target="{label3}"/>
<mx:RemoveChild target="{txtHeight3}"/>
<mx:RemoveChild target="{txtHeight4}"/>
<mx:RemoveChild target="{txtOffset}"/>
<mx:RemoveChild target="{label4}"/>
<mx:RemoveChild target="{label5}"/>
<mx:RemoveChild target="{label6}"/>
<mx:RemoveChild target="{txtHeight1}"/>
<mx:RemoveChild target="{txtHeight2}"/>
<mx:RemoveChild target="{txtInitDist}"/>
<mx:RemoveChild target="{label7}"/>
<mx:RemoveChild target="{label8}"/>
<mx:RemoveChild target="{label9}"/>
<mx:RemoveChild target="{txtHeat}"/>
<mx:RemoveChild target="{label13}"/>
<mx:AddChild position="lastChild">
<mx:DataGrid x="57" y="112" width="274" height="336" id="dgPressure" dataProvider="{dataOP}">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:LineChart x="382" y="112" id="lcOverPressure" width="513" height="182">
<mx:series>
<mx:LineSeries displayName="Series 1" yField=""/>
</mx:series>
</mx:LineChart>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:Legend dataProvider="{lcOverPressure}" x="810" y="51"/>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:Button x="382" y="426" label="Close" id="btnClose" click="currentState=''"/>
</mx:AddChild>
</mx:State>
<mx:State name="stateTR">
<mx:RemoveChild target="{txtHeat}"/>
<mx:RemoveChild target="{txtHeight1}"/>
<mx:RemoveChild target="{txtHeight3}"/>
<mx:RemoveChild target="{txtHeight5}"/>
<mx:RemoveChild target="{txtHeight2}"/>
<mx:RemoveChild target="{txtHeight4}"/>
<mx:RemoveChild target="{txtHeight6}"/>
<mx:RemoveChild target="{txtInitDist}"/>
<mx:RemoveChild target="{txtOffset}"/>
<mx:RemoveChild target="{txtFinalDist}"/>
<mx:RemoveChild target="{label13}"/>
<mx:RemoveChild target="{label7}"/>
<mx:RemoveChild target="{label4}"/>
<mx:RemoveChild target="{label3}"/>
<mx:RemoveChild target="{label8}"/>
<mx:RemoveChild target="{label5}"/>
<mx:RemoveChild target="{label1}"/>
<mx:RemoveChild target="{label9}"/>
<mx:RemoveChild target="{label6}"/>
<mx:RemoveChild target="{label2}"/>
<mx:RemoveChild target="{btnOP}"/>
<mx:RemoveChild target="{btnThermal}"/>
<mx:AddChild position="lastChild">
<mx:DataGrid x="39" y="108" width="301" height="364">
<mx:columns>
<mx:DataGridColumn headerText="Column 1" dataField="col1"/>
<mx:DataGridColumn headerText="Column 2" dataField="col2"/>
<mx:DataGridColumn headerText="Column 3" dataField="col3"/>
</mx:columns>
</mx:DataGrid>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:LineChart x="420" y="108" id="linechart1" width="475" height="181">
<mx:series>
<mx:LineSeries displayName="Series 1" yField=""/>
</mx:series>
</mx:LineChart>
</mx:AddChild>
<mx:AddChild position="lastChild">
<mx:Legend dataProvider="{linechart1}" x="810" y="13"/>
</mx:AddChild>
</mx:State>
</mx:states>
<!-- States Definition -->
<!-- Controls Definition -->
<mx:TextInput x="331" y="95" width="62" id="txtHeat" text="8"/>
<mx:TextInput x="231" y="229" width="62" id="txtHeight1" text="100"/>
<mx:TextInput x="231" y="259" width="62" id="txtHeight3" text="300"/>
<mx:TextInput x="231" y="289" width="62" id="txtHeight5"/>
<mx:TextInput x="357" y="229" width="62" id="txtHeight2" text="200"/>
<mx:TextInput x="357" y="259" width="62" id="txtHeight4"/>
<mx:TextInput x="357" y="289" width="62" id="txtHeight6"/>
<mx:TextInput x="580" y="229" width="62" id="txtInitDist" text="0"/>
<mx:TextInput x="580" y="259" width="62" id="txtOffset" text="100"/>
<mx:TextInput x="580" y="289" width="62" id="txtFinalDist" text="2000"/>
<mx:Label x="298" y="97" text="Heat" id="label13"/>
<mx:Label x="168" y="231" text="Height1" id="label7"/>
<mx:Label x="168" y="261" text="Height3" id="label4"/>
<mx:Label x="168" y="291" text="Height5" id="label3"/>
<mx:Label x="302.5" y="231" text="Height2" id="label8"/>
<mx:Label x="301" y="261" text="Height4" id="label5"/>
<mx:Label x="301" y="291" text="Height6" id="label1"/>
<mx:Label x="484" y="231" text="Initial Distance" id="label9"/>
<mx:Label x="533" y="261" text="Offset" id="label6"/>
<mx:Label x="490" y="291" text="Final Distance" id="label2"/>
<mx:Button x="298.5" y="384" label="Pressure Effects" id="btnOP" click="getOP()"/>
<mx:Button x="464.5" y="384" label="Thermal Effects" width="142" id="btnThermal"/>
<mx:Label x="298" y="10" text="Weather Effects" fontWeight="bold" fontSize="18"/>
<!-- Controls Definition -->
</mx:Application>

I suggest that you first not try to cram all of your code into the MXML. Though many examples use this approach for quick copy-and-pasting, it is bad style and not as maintainable. You should use the code-behind approach where your MXML is strictly for layout of the view and its root element is a custom class that extendeds the usual base (in this case Application).
Since the number of series in your line cart may vary, what you will need to do is dynamically create them whenever the data provider is updated.

Similar Messages

  • In sm_crm automatically populate service and response profiles based on support team

    Hi All,
    i have a requirement that in SM_CRM transaction while creating a incident user wants to automatically populate service and response profiles based on support team name.
    i have checked for BADI's but dint find any which automatically populates service and response profiles at the time of creation of the ticket.
    Kindly help!!

    Hi Shaswat
    This doesn't work as mentioned in the wiki page and SLA doesn't get determined by the org unit or support team via customizing.
    We reported this to SAP and got a feedback that this is not supported and will be removed in future from the access sequence.
    Therefore the only option is to implement badi i.e. crm_sladet_badi and use BADI determination in ur acess sequence to call this badi.
    hope this clarifies
    Thanks
    Prakhar

  • What are your preferred word processing and drawing apps?

    I currently use LibreOffice for most purposes, because it has both word processing and drawing software built-in, because it can read many file formats, without as much trouble as most other office suites. Unfortunately, while it can import AppleWorks word-processing documents, it can't import drawings, spreadsheets, etc., and while it can import older Word word-processing documents, it tends to corrupt the tables, the fancier quotes, etc. Also unfortunately, it does not work well with speech-to-text/dictation, not that dictation works well. Also unfortunately, it sometimes screws up imported images.
    I try to minimize formatting to avoid that in the future.
    I used to use Appleworks for most purposes, but it isn't supported anymore.
    I tried TextEdit, but it doesn't allow me to save different versions of the same document, or a new document based on an old document, it screws with page margins, and it doesn't have drawing software. I used to use Word, and at one point used Pages, but there are all sorts of issues with their file formats and incompatibilities between different versions.
    I would like a functional but not excessively fancy word-processing and drawing tool, and either as part of that, or in addition to that, a suitable version comparison tool. I draw a lot of maps, so the drawing program has to respect scale, and I have coordination problems, so it has to make it easy to put the right object in the right place. I've had trouble with that in LibreOffice.
    So in general, what word processing and office suite software do you think works for your needs, or would work for my or other people's needs?

    http://itunes.apple.com/ca/app/pages/id361309726?mt=8
    http://itunes.apple.com/us/app/numbers/id361304891?mt=8
    http://itunes.apple.com/ca/app/documents-to-go-premium-office/id317107309?mt=8

  • Automatically populate fields in jsp documents based on other fields

    hello guys. I have a jsp document
    that has the following
    <af:inputText value="#{bindings.SourceDocumentId.inputValue}"
    label="#{bindings.SourceDocumentId.label}"
    required="#{bindings.SourceDocumentId.mandatory}"
    columns="#{bindings.SourceDocumentId.displayWidth}"
    binding="#{backing_transactions_editTransactions.docId}"
    id="docId">
    <af:validator binding="#{bindings.SourceDocumentId.validator}"/>
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.SourceDocumentId.format}"/>
    </af:inputText>
    <af:inputText value="#{bindings.DocumentName.inputValue}"
    label="#{bindings.DocumentName.label}"
    required="#{bindings.DocumentName.mandatory}"
    columns="#{bindings.DocumentName.displayWidth}"
    binding="#{backing_transactions_editTransactions.docName}"
    id="docName">
    <af:validator binding="#{bindings.DocumentName.validator}"/>
    </af:inputText>
    And I have created the generated the backing beans automatically.
    public class EditTransactions {
    private CoreInputText docId;
    private CoreInputText docName;
    public CoreInputText getDocId() {
    return docId;
    public void setDocName(CoreInputText inputText7) {
    this.docName = inputText7;
    public CoreInputText getDocName() {
    return docName;
    I have a method in appmodule that has this
    public String getDocName(Number docId)
    {String docName;
    return docName
    on the document Id field I have to input a certain docId after I input the docId I have to populate automatically the docName based on the doc Id being given.
    question
    1. how can I set the document name automatically w/out submitting the page ?
    2. how can I use my backing bean to set the docName using the method in my AppModule.?
    Can anyone help me regarding this one.
    Thank in advance
    alvin.

A: automatically populate fields in jsp documents based on other fields

here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
                        label="#{bindings.SourceDocumentId.label}"
                        required="#{bindings.SourceDocumentId.mandatory}"
                        columns="#{bindings.SourceDocumentId.displayWidth}"
                        binding="#{backing_transactions_editTransactions.docId}"
                        id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
            <af:validator binding="#{bindings.SourceDocumentId.validator}"/>
            <f:convertNumber groupingUsed="false"
                             pattern="#{bindings.SourceDocumentId.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.DocumentName.inputValue}"
                        label="#{bindings.DocumentName.label}"
                        required="#{bindings.DocumentName.mandatory}"
                        columns="#{bindings.DocumentName.displayWidth}"
                        binding="#{backing_transactions_editTransactions.docName}"
                        id="docName"
partialTriggers="docId">
            <af:validator binding="#{bindings.DocumentName.validator}"/>
          </af:inputText>2. add the followig method to your backing bean:
  public void docIdChange(ValueChangeEvent valueChangeEvent) {
    getDocName().setValue((String)getDocId().getValue() + "suffix");
  }Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated

here is what you need to do:
1. Change the definitions for your fields as following
<af:inputText value="#{bindings.SourceDocumentId.inputValue}"
                        label="#{bindings.SourceDocumentId.label}"
                        required="#{bindings.SourceDocumentId.mandatory}"
                        columns="#{bindings.SourceDocumentId.displayWidth}"
                        binding="#{backing_transactions_editTransactions.docId}"
                        id="docId" valueChangeListener="#{backing_transactions_editTransactions.docIdChange}"
autoSubmit="true">
            <af:validator binding="#{bindings.SourceDocumentId.validator}"/>
            <f:convertNumber groupingUsed="false"
                             pattern="#{bindings.SourceDocumentId.format}"/>
          </af:inputText>
          <af:inputText value="#{bindings.DocumentName.inputValue}"
                        label="#{bindings.DocumentName.label}"
                        required="#{bindings.DocumentName.mandatory}"
                        columns="#{bindings.DocumentName.displayWidth}"
                        binding="#{backing_transactions_editTransactions.docName}"
                        id="docName"
partialTriggers="docId">
            <af:validator binding="#{bindings.DocumentName.validator}"/>
          </af:inputText>2. add the followig method to your backing bean:
  public void docIdChange(ValueChangeEvent valueChangeEvent) {
    getDocName().setValue((String)getDocId().getValue() + "suffix");
  }Run your form and enter the value into docId field, then press tab to go to the next field - docName will be populated

  • Pre-populate adapters behaviour during role based provisioning

    Hi all,
    I have a question about pre-populate adapters behaviour during role based provisioning.
    I'll sortly describe our architecture: we have OIM 11.1.1.3, Active Direcotry connector and obviously Active Directory as target system.
    Our scenario is: assigning a role to a user , OIM should provision two account for this user to the same target system but in two different organizational unit (Active Directory).
    Here some sample information to better understand our request:
    - OIM User userID: userid1
    - Active Directory IT Resource: ADServer1
    - Active Directory Organizational Units: OU1 and OU2
    - Role: Example Role
    - UserID of the account provisioned in OU1: admin.userid1 (in this organizational unit the UserID is composted by a prefix "admin." and the OIM User UserID "user1")
    - UserID of the account provisioned in OU2: user.userid1 (in this organizational unit the UserID is composted by a prefix "user." and the OIM User UserID "user1")
    To achieve this goal, we have created two access policies AP1 and AP2. The first access policy provision the user account in OU1; while the second one in OU2.
    Here some access policies form details:
    ### AP1 ###
    - AD Server: ADServer1
    - Organization Name: OU1
    (other fields are empty)
    ### AP2 ###
    - AD Server: ADServer1
    - Organization Name: OU2
    (other fields are empty)
    Our idea was to develope two pre-populate adapter: one to compose the userID with "admin." prefix and the other one to compose userID with "user." prefix. However this solution cannot work because obviously you can link only one pre-populate adapter to a resource form field.
    Any suggestion to avoid to create a second resource form?
    Thank in advise,
    Daniele

    Hi,
    probably your confusion is caused by my english....anyway....
    I'm trying to generate two userids and in our scenario it's simple map the organizational units. For example userids in organizational units OU1 have "admin." prefix; while organizational units OU2 have "user." prefix.
    Do you suggest to create a pre-populate adapter that use a lookup to set the correct prefix based on organizational unit name?
    Thank you
    Daniele

  • How to populate LOV of one prompt based on other prompts w/o cascade

    Hello All,
    Scenario- There are three prompts in my report.
    Source_Prompt1, Source_Prompt2 and Target_Prompt.
    There is no direct reletion between Source_Prompt1 and Source_Prompt2.
    And user wants Target_Prompt data on selection of these source_prompts.
    Is there any way to populate target prompt on selection of source prompt.
    Note- This can be implemented by applying cascading between all three prompts fields.
    However user dosent want Cascading between source prompts.?
    is there any other method except cascading prompt to populate LOV of one prompt based on selection of other prompt values?
    Your insights are most welcome.
    Amit

    I believe the only way to populate LOVs is directly from a database. E.g.; you can not populate it "manually". In your case, you may have to create your own prompt forms and use those.
    - Ludek

  • Datagrid and checkbox renderer

    I'm looking to have a datagrid have a dataprovider from a coldfusion remote object in which i want to save a boolean value for checkboxes. i want the user to be able to select and deselect checked items and submit to a back end DB where their changes are saved.
    Then on load I want the checkbox value to be selected or deselected based on their previously saved prefs. Checkbox item renderers are a re-occuring problem for me. There seems to be so many ways to implement them and so far using online examples they don't show how to save results to a DB and reload them based on a DB. please help
    code i'm currently trying to use (where ITEM_TYPE is a DB value of true or false) and the getCheckList.lastResult is made up of 7 rows with ITEM_TYPE and DESCRIPTION (the checkbox description for the user):
    <mx:DataGrid id="myDG" dataProvider="
    {parentApplication.ATService.getCheckList.lastResult}" variableRowHeight="
    true" width="
    500" height="250" editable="
    true">
    <mx:columns>
    <mx:DataGridColumn textAlign="center" width="25" dataField="ITEM_TYPE" itemRenderer="
    mx.controls.CheckBox" rendererIsEditor="
    true"editorDataField="
    selected"/>
    <mx:DataGridColumn dataField="DESCRIPTION" />
    </mx:columns >
    </mx:DataGrid>

    I tried that Blog. It doesn't show how to preload from a database the checked or unchecked values. I did figure it out on my own though after some hard work. Using the <mx:Component> tag is nice... but i found it can't reference anything in the component its in b/c anything under <mx:Componenet> is not of the same class. trick here is to add the parentDocument. prefix and you call anything you want. also found that a DB string value (or varchar) of "true" or "false" is not recognized as boolean by flex. So to check or uncheck based on a DB result set from a CF componenet you need to actually check the value. I've attached my sample code for anyone else having trouble with this:
    <mx:DataGrid id="chkListDG" dataProvider="{parentApplication.ATService.getCheckList.lastResult}"width="
    100%" height="100%">
    <mx:columns>
    <mx:DataGridColumn textAlign="center" headerText="" dataField="CHKLIST_ID" width="30">
    <mx:itemRenderer>
    <mx:Component>
    <mx:CheckBox selected="{data.CHK_STATUS == 'true'}" click="dbChange()">
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert; 
    private function dbChange():void{ 
    if (parentDocument.chkListDG.selectedItem.CHK_STATUS == 'false'){parentDocument.chkListDG.selectedItem.CHK_STATUS =
    'true'}
    else{parentDocument.chkListDG.selectedItem.CHK_STATUS =
    'false'};
    parentApplication.ATService.chkListSave(parentDocument.chkListDG.selectedItem.CHKLIST_ID,p arentDocument.chkListDG.selectedItem.CHK_STATUS);
    ]]>
    </mx:Script>
     </mx:CheckBox>  
    </mx:Component>  
    </mx:itemRenderer>
     </mx:DataGridColumn>
     <mx:DataGridColumn headerText="Description" dataField="DESCRIPTION"/>
     <mx:DataGridColumn headerText="Value" dataField="CHK_STATUS"/>
     </mx:columns>  
    </mx:DataGrid>

  • Populate updatable drop down list based on files in the folder path

    Hi, 
    I am a beginner in labview. I am stuggling on where to start.
    Here's what I need to do. 
    I want to create an updatable drop down list. It can be automatic upon opening the program or manually update by clicking an update button. The drop down list will list all the filenames that are in .cvs format. These files are stored in a folder path.  Insider the folder, they are stored in different subfolders, the drop box should be able to find those files inside the subfolders. Once the user select a filename from the list, the program will read the data inside that file and import into an array so I can display the data. 
    I have an idea on how to display the data, but I don't how to populate the drop down list based on the files in the folder, make it updatable and then import that user selected file's data into the the array. 
    Can anyone help me with this? 
    Thanks, Ruth

    Yup, ListFolder with a pattern of *.csv.  Then use a property node on a combo box or ring to set the items in the drop down.  Here is some free training if you are interested in learning more general LabVIEW tools.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Populate elements in a drop based on selection made in another drop down

    i need to populate elements in a drop based on selection made in another drop down list. have created list models for populating data from R3. I am using PDK for java development.

    hi,
    to populate the second dropdown from the selection of the first u need to the submit the form on the selection of data from dropdown and based on the selection populate the second dropdown.
    If using jspDynpage u can submit the form on the  ''onChange" event of first drop down.
    If you can let us know what type of application is this i think we can help you in more better way.
    Thanks
    Ritushree Saha

  • Urgent help needed!! Layout table and Draw layout cell dissapeared.

    I need some urgent help. I'm using CS3 but for a while my
    Layout Table and Draw Layout Cell icons appear greyed and can't use
    them at all. Is there any kind soul out there who knows how to fix
    this? I'm going nuts trying all the possible options but none seem
    to work.
    Help please!!!!!!

    > How would you about designing a page without using html?
    You don't. But I don't recall suggesting that you not use
    HTML. I just
    suggested that you use best-practice HTML, no? Or maybe you
    meant to ask
    how you would go about building your site without learning
    HTML? In that
    case, I think you are outta luck. Using DW without knowing
    HTML is a very
    punishing experience, I'm afraid.
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    I'd prefer Cristal, please.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Untersberg" <[email protected]> wrote in
    message
    news:g4tj9a$m5o$[email protected]..
    > Ahhhhhh!!!!! They came up!!!! They came up again!!
    > I was on standard mode. Now going back to your
    suggestion, which I really
    > appreciate. How would you about designing a page without
    using html? I'm
    > just
    > redesigning my website at the moment and need it to get
    going urgently,
    > hence
    > the reluctance to start learning HTML at the moment.
    I'll do after but I
    > need
    > to get this up and running fairly quickly.
    >
    > Cheers.
    >
    > PS: A virtual box of 12 bottles of Moet Chandon is
    already on your way!!
    >

  • Read .txt file of numbers and draw

    Hello.
    I am trying to utlize BufferedReader and g.drawline to read numbers from a text file and output to the screen as a "line".
    I know I still need a while loop and some error checking, but, am having trouble finishing the more 'basic' portion of the code.
    The GUI class is already taken care of. I am just trying to open the file, read, turn to int, produce lines, then close file.
    I have commented out some of the code that was provided with the assignment.
    Any help would be appreciated.
    Thank you.
    import javax.swing.*;
    import java.awt.*;
    * DrawingPanel creates a panel used for drawing
    * a map
    * Numbers stored in text file, usa.txt.
    * one number per line.  Read each number
    * create a map on screen. GUI provided in a
    * 2nd class.
    public class DrawingPanel extends JPanel {
         /** Graphics object used for drawing on the panel */                           
         private Graphics g;                  
         /** Tells if it is time to draw */
         private boolean timeToDrawPath;
         /** The filename of the hurricane path */
                                  //private String pathFile; 
         private String usa.txt;
         * Creates a new, white DrawingPanel for drawing the maps
         public DrawingPanel() {
              setBackground(Color.white);
              this.timeToDrawPath = false;
                                  //this.pathFile = null;
              this.usa.txt = null;
         * This method is called automatically by Java.  There will NEVER
         * be a direct call to paint() anywhere in the code.  Anytime that we
         * need to update what is drawn on the screen, we call repaint().
         * @param grph The graphics window to paint
         public void paint(Graphics grph) {
              g = grph;
              super.paint(g);
              processUSA();
              if (timeToDrawPath){
                   drawPath();
         * Reads the USA coastline coordinates from a file and draws the path
         * to the panel
         public void processUSA( ) {
                        //just an example of how to draw a single
                        //line segment from (50,50) to (200,200)
                        //g.drawLine( 300, 50, 200, 200);
         //Insert the while loop here??
         //Include the parse.Int statement
         //Open the file
         String inFile = ("usa.txt");
         FileReader fileReader = new FileReader (inFile);
                   //BufferedReader bufReader = newBufferedReader (fileReader);
         BufferedReader bufReader=newBufferedReader (new fileReader ("usa.txt"));
                        //Insert beginning of while loop here????
         //read data from the file
         String str=bufReader.readLine();
         g.drawLine(x1,y1,x2,y2);
         }

    Yep, you are right in deciding the positioning of the while loop.
    But the folly you are committing is while creating object of BufferedReader ... It is to be created by passing to the constructor, the reference of the FileReader object you have created.
    so the line of code shud look like ...
    BufferedReader bufReader = new BufferedReader(FileReaderObject);
    And then you can go ahead with readLine() as per your requirement in the while loop.

  • My iPod touch will not let me download more apps, though I have sufficent memory space, and other internet based functions are running...

    though I have sufficent memory space, and other internet based functions are running...

    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar
    However, since it works with other networks that really suggests a problem with your network.

  • How to realize Checkbox and Radio Buttons based on Attributes in JHeadstart

    Hy@ all,
    I try to redevelop the Summit Forms Demo in ADF.
    The module "ORDER" contains, among other things, a checkbox and radio buttons based on database columns(VARCHAR2).
    The column(checkbox) named PAYMENT_TYPE contains the values CASH and CREDIT and the column(radio button) called ORDER_FILLED contains the values Y and N.
    After creating the business components, I set in JHeadstarts Application Definition the Display Type of these two attributes to checkBox and radio-horizontal.
    I created a dymanic domain for the radio-horizontal and a static domain for the checkBox.
    The radio-horizontal within the dymanic domain works nearly correct.
    I set the Data Collection in this dynamic domain to the required Group and the Value and Meaning Attribute to the necessary Attribute.
    Within the JSF- Page the values are shown right but unfortunately there are too many radio buttons available. Instead of displaying the two radio buttons CASH and CREDIT were many CASH and CREDIT radio buttons shown.
    I can´t find any solution for this case.
    The problem with the checkBox is that therfore a static domain is required but I want to show the value of the checkBox based on the described attribute, like the handling of the radio horizontal.
    But I don´t know how to implement this, if it is possible.
    I´m using JHeadstart v10.1.3.2 and I´m pleased about any reply or solution.
    Best regards
    Chris

    Chris,
    If you run the application module tester, and query the view object usage underlying your dynamic domain, how many rows does it return? It should return only two rows, one for CASH and one for CREDIT. If more than two rows are returned, your query is wrong.
    What is the problem with using a static domain for the checkbox?
    Steven Davelaar,
    JHeadstart Team.

  • I'm trying to transfer iTunes and it's based off an old email account. How can I transfer to my new email account.

    I'm trying to transfer iTunes and it's based off an old email account. How can I transfer to my new email account.

    In addition I don't remember my old password.

  • Invoice Posting using INVOIC02 Idoc for PO and Non-Po based invoices

    Hi All,
      We have a problem regarding posting Invoices using Idocs.
    We have po and non-po invoices coming frm thirdparty in the form of idoc files.
    We need a clarification whether Invoic02 idoc can handle both Po and Non Po Based invoices or threre are seperate idoc types or message types for Po and Non Po Invoices.
    Could any one give some inputs on Partner Profiles also for this senario.
    Please kindly reply as early as possible.
    Regards
    Anil Kumar K

    Hi
      I Got your name from this site.I would be very thankful if you can help me here.I am designing a EDI based invoice LIV.Is it possible to post some charges which are without PO reference but are coming in Vendor Invoices.Is it possible to post these kind of charges with EDI message INOIC01 or we have to post through FI posting.If possible through EDI in which segment of IDOC we will enter these charges with amt.Also is it possible to post credit memo also with EDI
    Thanks
    Sanjeev

  • Maybe you are looking for

    • How do I put all my messages onto my Macbook to view them on there.

      I have a lot of messages saved onto my iPhone 5 and I want to view a certain contact's messages (like scroll all the way to the top) but it takes a long time to do so since I have sent/recieved so many messages from them and I have them all saved, so

    • What is missing from Photoshop CS6 ???

           I tried the new PhotoShop CS6 (beta) but aside from some innovations of which my favorite is the interface (The interface is one of the best innovation that Adobe have made finally an interface that does not make you eyes hurt) and content aware

    • My Experience Evaluating PE8

      I have decided to post my experience in evaluating PE8.  I'm sure there will be feedback countering some of my findings or suggesting fixes, etc., but I just wanted to lay out the facts of my experience, which I would suggest is not unique. As backgr

    • BAPI to update DELIVERY

      Hi Experts , I want to update delivery in the FM IDOC_INPUT_SHPMNT . I have checked WS_DELIVERY_UPDATE_2 , but it is not released . Please help .

    • Upgrade to Hyperion Enterprise 6.5.1.1.102 - Performance Issues

      We are testing an upgrade to Hyperion Enterprise 6.5.1.1. We have applied the Update 2 patch which I believe officially takes the version to 6.5.1.1.102. In testing reports and consolidation between the new version and the old 6.4.1 version of Enterp