Embed HTTPService in a visual component

I want to create a visual component with a top element
<mx:Canvas>. This component needs to retrieve some data from
a remote server, however <mx:Canvas> can not contain
<mx:HTTPService>. Which components can contain
<mx:HTTPService>? I know <mx:Application> and
<mx:UIComponent> can. Should I create a separate HTTPService
class in AS outside the mxml and use it in the component
mxml?

Try this code below, in which I just added the top element
<mx:Application> based on your code. The
<mx:HTTPService> is still inside
<mx:Canvas>. It compiles fine. But when I ran it in
FB3, I got parse error at <mx:HTTPService>.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
>
<mx:Canvas xmlns:mx="
http://www.adobe.com/2006/mxml"
width="400" height="300"
creationComplete="init()" >
<mx:Script>
<![CDATA[
import mx.collections.XMLListCollection;
import mx.rpc.events.ResultEvent;
[Bindable] public var dataDP:XMLListCollection = new
XMLListCollection();
private function init():void{
dataRequest.send();
private function dataResultHandler(event:ResultEvent):void{
var list:XMLList = new XMLList(event.result..item.@name);
dataDP = new XMLListCollection(list);
]]>
</mx:Script>
<mx:HTTPService id="dataRequest" useProxy="false"
resultFormat="e4x"
result="dataResultHandler(event)"
url="data/inputData.xml"/>
<mx:ComboBox dataProvider="{dataDP}" rowCount="6"/>
</mx:Canvas>
</mx:Application>
BTW, be nice.

Similar Messages

  • I need to resize the visual component..help pls

    Here's the sample code:
    (Assuming that the player has already been realized)
    Component vc;
    vc = player.getVisualComponent();
    if ((vc = player.getVisualComponent()) != null){
         player.start();
         panel.add(vc);
    I need to reduce the size of the visual component from its default size (320x240). vc.setSize() and vc.setBounds() doesn't seem to work.
    Please help me out. Thank you.

    Hi,
    Please use getPreferredSize().
    e.g. as in PlayerPanel. Defntly works!
    Regards,

  • How to embed a smartform into a component?

    Hi All,
    i would like to embed a smartform into the component to display the relevant information of complaint in WEB UI.
    In complaints when i clicked on complaint ID it is not not displaying any details? So i would like to add a smart form to the component to display all the details. Please help me how to add the smartform into the component?
    Thanks
    Maheedhar

    Hi pavan,
    I did not try this but I think you can call the smatforms function module and get the form in html from parameter JOB_OUTPUT_INFO-XMLOUTPUT-TRFRESULT.
    Put this into WD component using respective method. Compare Thread: [Add html code in web dynpro application|Add html code in web dynpro application]
    Regards,
    Clemens

  • Is it possible to resize a Visual Component?

    I have a visual component that plays and MPG file, but it does not respond to the size I set for it with the setSize method. It sizes it to whatever it wants to. Has anyone seen anything like this? If so, how do I fix it?

    I meet the same problem when i want to resize the component which return by
    calling getVisualComponent();
    Someone can help us?

  • Play effect on dynamically created visual component

    Hi!
    Can someone please explain to me, how do I play effect on a visual component created in actionscript?
    Thanks, regards

    You can also set the target/targets property of the effect once you've created the instance in AS, just like you do in MXML code. So where in MXML you might have something like this:
         <mx:Button id="button" click="mover.play()"/>
          <mx:Move id="mover" target=""/>
    you would do the equivalent in actionscript like this:
         var button:Button = new Button();
         var mover:Move = new Move();
         mover.target = button;
         button.addEventListener(MouseEvent.CLICK, clickHandler);
         private function clickHandler(event:Event):void
              mover.play();
    There's no mystery here in launching effects from AS - it's the same properties and structures that you set up in MXML, just different syntactic ways of referring to the properties and events.
    Chet.

  • Help on getting Visual Component for processor

    hi all
    I am having problem with the processor, i am not able to get the
    Visual component and display it. Only the control panel component is being
    display. Can anyone tell me what might be wrong.
    thanx in advance

    hi
    Thanx for reply
    Actually I had created processor using MprocessorMOdel
    Now I want to show the monitor on my panel
    But i am not able to get that
    I am attaching the code
    Plzzzz help me out
    FileTypeDescriptor ftd = new FileTypeDescriptor(FileTypeDescriptor.MSVIDEO);
    pm = new ProcessorModel(dsVideo, formats, ftd);
    videoPlayer = Manager.createRealizedProcessor(pm);
    videoPlayer.addControllerListener(this);
    videoPlayer.start();
    }catch(Exception me){
    dsVideo.disconnect();
    mc=(MonitorControl)dsVideo.getControl("javax.media.control.MonitorControl");
    if(mc!=null)
    monitor = mc.getControlComponent();
    f.getContentPane().add(monitor, BorderLayout.CENTER);
    mc.setEnabled(true);
    this is the code
    dsVideo ----- datasource
    videoPlayer ------- RealizedProcessor
    mc-----------------MonitorControl
    Monitor ----------- component
    thanx in advance

  • How to resize media's visual component resolution

    Hello dear:
    How to resize visual component resolution?
    example:
    I have a movie,this movie's resolution is 800*600dpi,I want this movie's visual component is 600*520.
    Thanks

    public Dimension getPreferredSize() {
                   int w = 0, h = 0;
                   if (vc != null) {
                        Dimension size = vc.getPreferredSize();
                        w = size.width;
                        h = size.height;
                   if (cc != null) {
                        Dimension size = cc.getPreferredSize();
                        if (w == 0)
                             w = size.width;
                        h += size.height;
                   if (w < 160)
                        w = 160;
                   return new Dimension(w, h);
    these codes can't change movie's aspect ratio,eg one movie resolution is 600*500,I can't change this movie resolution to 400*400 on playing. The Transcode.java is chanage the movie file resolution, not my expect.
    I wish the one movie resolution is 600*500,this movie full window in the JPanel that resolution is 400*400.

  • NotRealizedError: Can not get visual component on an unrealized player

    Exception in thread "main" javax.media.NotRealizedError: Cannot get visual component on an unrealized player
         at com.sun.media.BasicPlayer.getVisualComponent(BasicPlayer.java:491)
         at com.sun.media.MediaPlayer.getVisualComponent(MediaPlayer.java:48)
         at com.jbe.core.jdk.test.VideoMetadataTest.main(VideoMetadataTest.java:24)
      Unable to handle format: mpeglayer3, 32000.0 Hz, 0-bit, Stereo, Unsigned, 8518.0 frame rate, FrameSize=9216 bits
    public static void main(String[] args) throws NoPlayerException, IOException  {
              URL url = new URL("file:C:/Video/Test.avi");
              Player player = Manager.createPlayer(url);
              player.realize();
              System.out.println(player.getVisualComponent());
         }This is my error log and my source code. Is there something I am doing wrong.? Please help me resolve this error.
    Thanks,
    Krishnan

    the AirPort Express will no longer allow me to double NAT it and just continues to give me an error that the DHCP range conflicts with the WAN IP address of the base station?
    Two possible fixes:
    1) Perform a Factory Default Reset on the Express to clear out all the old and conflicting settings, then reconfigure it again.
    2) Change the DHCP range settings.
    For example, if the Express is now set to provide IPs from say 192.168.1.2 to 192.168.1.200......change the setting to read something like 192.168.5.2 to 192.168.5.200.
    2) will likely allow you to bypass 1). But, I would still recommend that you do 1) as it is always a good idea to start from scratch when you are making changes to a device on a network.
    Tesserax will have other good ideas for you as well, I am sure.

  • Simultaneous httpservice in the same component

    Dear Flexer,
    I created an Air application.
    On loading my component, I'd to make simultaneous request to my database to load some data to my component.
    My component is a form with several comobobox and and text field.
    But to do that I have two major problem.
    - Sometimes, my form (my component) is loaded but there no information  in my text field, perhaps request is not finished? but how to verify  that and how to solve.
    - Other question, as requests with http service is for different table,  one to load sudent, other to load note, other to load teaching , is it  possible to do this request in the same php file and to get all thos  informations with the same E4X file.
    Thanks for help
    [Code]
    <?xml version="1.0" encoding="utf-8"?>
    <windowSkin:NativeTitleWindow xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:mx="library://ns.adobe.com/flex/mx"
      xmlns:windowSkin="fr.intersystemes.ui.windowSkin.*"
      xmlns:skins="fr.intersystemes.ui.skins.*"
      xmlns:tabBarClasses="flexlib.controls.tabBarClasses.*"
      minWidth="800" minHeight="800" borderVisible="false"
      creationComplete="onLoad(event)"
      currentState="tb1"
      dropShadowVisible="false"
      skinClass="fr.intersystemes.ui.windowSkin.NativeTitleWinSkin">
    <windowSkin:states>
    <s:State name="tb1"/>
    <s:State name="tb2"/>
    <s:State name="tb3"/>
    <s:State name="tb4"/>
    <s:State name="tb5"/>
    <s:State name="tb6"/>
    </windowSkin:states>
    <fx:Declarations>
    <!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
    <s:HTTPService id="phpPatientDetail"
       showBusyCursor="true"
       useProxy="false"
       resultFormat="e4x"
       method="POST"
       result="detailPatient(event)"
       fault="trace(this + event.fault.toString());">
    </s:HTTPService>
    <s:HTTPService id="phpLoadTypeDossier"
       showBusyCursor="true"
       useProxy="false"
       resultFormat="e4x"
       method="POST"
       result="allDossier(event)"
       fault="trace(this + event.fault.toString());">
    </s:HTTPService>
    <s:RadioButtonGroup id="rbsex"/>
    </fx:Declarations>
    <fx:Metadata>
    [Event(name="myEventClose", type="fr.intersystemes.ui.windowSkin")]
    </fx:Metadata>
    <fx:Script>
    <![CDATA[
    import fr.intersystemes.VO.PatientVO;
    import fr.intersystemes.config.urlManager;
    import fr.intersystemes.util.DateUtility;
    import fr.intersystemes.util.FileSerializer;
    import fr.intersystemes.util.UserPrefs;
    import mx.collections.ArrayCollection;
    import mx.events.FlexEvent;
    import mx.events.IndexChangedEvent;
    import mx.events.ItemClickEvent;
    import mx.rpc.events.ResultEvent;
    import spark.events.IndexChangeEvent;
    [Bindable]
    public var monIdPatient:String;
    private var pg:UserPrefs;
    [Bindable]
    public var PAT_TB_ARRAY:ArrayCollection = new ArrayCollection (
    [{label:"Personnelles"},
    {label:"Assuré & Sécu. Soc"},
    {label:"Compléments perso"},
    {label:"Autres adresses"},
    {label:"Cursus"},
    {label:"Archives"}]
    [Bindable]
    private var DP_PAT_CIVIL:ArrayCollection = new ArrayCollection (
    [{label:"Monsieur"},
    {label:"Madame"},
    {label:"Mademoiselle"},
    {label:"Le Jeune"}]
    [Bindable]
    private var DP_PAT_ADRDEF:ArrayCollection = new ArrayCollection (
    [{label:"Monsieur"},
    {label:"Madame"},
    {label:"Mademoiselle"},
    {label:"Le Jeune"}
    [Bindable]
    private var DP_PAT_DOS1:ArrayCollection = new ArrayCollection (
    [{label:"N° Etudiant"},
    {label:"N° INEE"},
    {label:"Liberer"}
    [Bindable]
    private var DP_PAT_DOS2:ArrayCollection = new ArrayCollection (
    [{label:"N° Etudiant"},
    {label:"N° INEE"},
    {label:"Liberer"}
    [Bindable]
    private var DP_PAT_TEL:ArrayCollection = new ArrayCollection (
    [{label:"Maison"},
    {label:"Bureau"},
    {label:"Pére"},
    {label:"Mére"}]
    protected function onLoad(event:FlexEvent):void
    this.pg = FileSerializer.readObjectFromFile("prefSaisiePat.up") as UserPrefs;
    var urlPatient:urlManager = new urlManager();
    phpPatientDetail.url=urlPatient.urlService() + "loadStudentById.php";
    var paramsPatient:Object = new Object();
    paramsPatient.idPatient = monIdPatient;
    phpPatientDetail.send(paramsPatient);
    phpLoadTypeDossier.send();
    private function onMyEventClose(e:Event):void
    private function allDossier(event:ResultEvent)
    private var objectPatient:PatientVO;
    private function detailPatient(event:ResultEvent):void
    trace(this + event.result.toString());
    var resultXml:XML = event.result as XML;
    var aNode:XML;
    var list:Array = new Array();
    // we use resultXml.children() (and not resultXml..customer)
    var dateConv : DateUtility = new DateUtility();
    trace ("result" + resultXml.children().length());
    for each (aNode in resultXml.children())
    objectPatient = new PatientVO();
    objectPatient.paIndex = Number(aNode.@id);
    objectPatient.paNomP = aNode.@np ;
    objectPatient.paPrenom = aNode.@pr ;
    objectPatient.paCodePostal = aNode.@cp;
    objectPatient.paDossier1 = aNode.@d1;
    objectPatient.paDossier2 = aNode.@d2;
    objectPatient.paNaissance = dateConv.dateStringToObject(aNode.@dn);
    objectPatient.paNumTel1 = aNode.@tel;
    lNom.text = objectPatient.paNomP;
    lPrenom.text = objectPatient.paPrenom;
    //lAge.text = dateConv.calculAgeAn(objectPatient.paNaissance) as String;
    lAge.text = " - " + dateConv.calculAgeAn(objectPatient.paNaissance) + " ans et " + dateConv.calculAgeMois(objectPatient.paNaissance) + " mois";
    lNaissance.text = "Né(e) le " + dateConv.dateToStringFR(objectPatient.paNaissance);
    this.title = objectPatient.paNomP + " "+ objectPatient.paPrenom;
    fdNom.text = objectPatient.paNomP;
    dfNaissance.text = dateConv.dateToStringFR(objectPatient.paNaissance);
    private function reloadPatient():void{
    private function tbClickEvt(evt:IndexChangeEvent):void {
    // Access target TabBar control.
    //var targetComp:TabBar = TabBar(evt.currentTarget);
    switch(evt.target)
    case 0:
    currentState="tb1";
    break;
    case 1:
    currentState="tb2";
    break;
    case 2:
    currentState="tb3";
    break;
    case 3:
    currentState="tb4";
    break;
    case 4:
    currentState="tb5";
    break;
    case 5:
    currentState="tb6";
    break;
    default:
    currentState="tb1";
    break;
    ]]>
    </fx:Script>
    <s:Group width="100%" height="100%">
    <s:layout>
    <s:BasicLayout/>
    </s:layout>
    <s:Image x="0" y="0" width="53" height="53" click="reloadPatient()"/>
    <s:VGroup x="100" y="8" width="100%" gap="5" verticalAlign="top"> <!-- Groupe central-->
    <s:HGroup> <!-- Nom prenom-->
    <s:Label text="Nom" id="lNom" fontWeight="bold"/>
    <s:Label text="Prénom" id="lPrenom" fontWeight="bold"/>
    </s:HGroup>
    <s:HGroup width="100%"> <!-- Naissance-->
    <s:Label text="Naissance" id="lNaissance" />
    <s:Label text=" / Age" id="lAge"/>
    </s:HGroup>
    </s:VGroup >
    <s:VGroup x="730" y="0" horizontalAlign="right" verticalAlign="top" paddingLeft="5"> <!-- Modif-->
    <s:Label text="Crea" id="lCrea"/>
    <s:Label text="Modif" id="lModif"/>
    </s:VGroup>
    <!-- Partie avec onglet-->
    <s:ButtonBar x="0" y="74" dataProvider="{PAT_TB_ARRAY}" change="tbClickEvt(event);"/>
    <s:Form x="0" y="94" id="foPerso" width="100%" height="100%" includeInLayout="true" includeIn="tb1">
    <s:layout>
    <s:FormLayout gap="3" paddingLeft="0"/>
    </s:layout>
    <s:HGroup width="100%" gap="3" horizontalAlign="left" resizeMode="noScale"
      verticalAlign="baseline" >
    <s:DropDownList id="cbQualite" dataProvider="{DP_PAT_CIVIL}"/>
    <s:FormItem label="Nom" >
    <s:TextInput id="fdNom" width="200" focusColor="#D55E5E" focusEnabled="true"
    tabIndex="1" text="Mon nom"/>
    </s:FormItem>
    <s:FormItem  label="Prénom" >
    <s:TextInput id="fdPrenom" width="200" tabIndex="2"/>
    </s:FormItem>
    <s:DropDownList id="cbDossier1" dataProvider="{DP_PAT_DOS1}" width="118" height="22" tabIndex="3"/>
    <s:FormItem label="" >
    <s:TextInput id="fDossier1" width="90" paddingRight="5" tabIndex="4"/>
    </s:FormItem>
    </s:HGroup>
    <s:Group>
    <s:FormItem label="Naissance" tabIndex="5" >
    <mx:DateField id="dfNaissance" width="100" editable="true" formatString="DD/MM/YYYY" yearNavigationEnabled="true"/>
    </s:FormItem>
    <s:RadioButton x="90" y="0" label="Masculin" group="{rbsex}" tabIndex="6"/>
    <s:RadioButton x="170" y="0" label="Féminin" group="{rbsex}" tabIndex="7"/>
    <s:DropDownList id="cbDossier2" x="340" y="0" width="118" height="22"
    dataProvider="{DP_PAT_DOS1}" tabIndex="8"/>
    <s:FormItem x="460" y="0" label="" tabIndex="9">
    <s:TextInput id="fDossier2" width="90" paddingRight="5"/>
    </s:FormItem>
    </s:Group>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Qualité" tabIndex="10">
    <s:DropDownList id="cbQualiteParent" width="130"/>
    </s:FormItem>
    <s:FormItem label="Nom" tabIndex="11">
    <s:TextInput id="tiNomPar" width="200" text="NomParent"/>
    </s:FormItem>
    <s:FormItem label="Prénom" tabIndex="12">
    <s:helpContent>
    <s:VGroup>
    <s:Label text="Prénom du responsable" />
    </s:VGroup>
    </s:helpContent>
    <s:TextInput id="tiPrenomPAr" width="200"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Adresse par défaut"  tabIndex="12" >
    <s:DropDownList id="cbAdrDef" dataProvider="{DP_PAT_ADRDEF}"/>
    </s:FormItem>
    <s:FormItem label="Adresse" tabIndex="13">
    <s:TextInput id="tiAdr1" width="480" text="Adr"/>
    <s:TextInput id="tiAdr2" width="480"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Code Postal" tabIndex="14">
    <s:TextInput id="tiCP" text="CP" width="65"/>
    </s:FormItem>
    <s:FormItem label="Ville" tabIndex="15">
    <s:TextInput id="tiVille" text="Ville" width="250"/>
    </s:FormItem>
    <s:FormItem label="Pays" tabIndex="16">
    <s:TextInput id="tiPays" text="Pays" width="175"/>
    </s:FormItem>
    </s:HGroup >
    <s:HGroup height="20" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline" paddingTop="5">
    <s:Label text="Téléphones"/>
    <s:Spacer width="39" height="20"/>
    <s:Label text="SMS"/>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:DropDownList id="paTabTel1" dataProvider="{DP_PAT_TEL}" tabIndex="17"/>
    <s:CheckBox id="cbSMS1" selected="true" tabIndex="18"/>
    <s:TextInput id="paTel1" width="120" text="Tel1" tabIndex="19"/>
    <s:TextInput id="paRemTel1" width="480" text="RemTel1" tabIndex="20"/>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:DropDownList id="paTabTel2" dataProvider="{DP_PAT_TEL}" tabIndex="21"/>
    <s:CheckBox id="cbSMS2" selected="true" tabIndex="22"/>
    <s:TextInput id="paTel2" width="120" text="Tel2" tabIndex="23"/>
    <s:TextInput id="paRemTel2" width="480" text="RemTel2" tabIndex="24"/>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:DropDownList id="paTabTel3" dataProvider="{DP_PAT_TEL}" tabIndex="25"/>
    <s:CheckBox id="cbSMS3" selected="true" tabIndex="26"/>
    <s:TextInput id="paTel3" width="120" text="Tel3" tabIndex="27"/>
    <s:TextInput id="paRemTel3" width="480" text="RemTel3" tabIndex="28"/>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Télécopie">
    <s:TextInput id="paFax" width="120" text="Fax" tabIndex="29"/>
    </s:FormItem>
    <s:FormItem label="Email">
    <s:TextInput id="paMail" width="333" text="Mail" tabIndex="30"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Prof. des parents">
    <s:TextInput id="paProfPar" width="180" text="Prof Par" tabIndex="31"/>
    </s:FormItem>
    <s:FormItem label="du père">
    <s:TextInput id="paProfPere" width="180" text="du père" tabIndex="32"/>
    </s:FormItem>
    <s:FormItem label="de la mère">
    <s:TextInput id="paProfMere" width="180" text="de la mère" tabIndex="33"/>
    </s:FormItem>
    </s:HGroup>
    <s:Line width="100%" height="3"/>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Rub1" >
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR1" width="220" text="Rub1" tabIndex="34"/>
    <s:CheckBox id="cbRB1" tabIndex="35"/>
    </s:FormItem>
    <s:FormItem label="Rub5">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR5" width="220" text="Rub5" tabIndex="36"/>
    <s:CheckBox id="cbRB5" tabIndex="37"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Rub2">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR2" width="220" text="Rub2" tabIndex="37"/>
    <s:CheckBox id="cbRB2" tabIndex="38"/>
    </s:FormItem>
    <s:FormItem label="Rub6">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR6"  width="220" text="Rub6" tabIndex="39"/>
    <s:CheckBox id="cbRB6" tabIndex="40"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Rub3">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR3"  width="220" text="Rub3" tabIndex="41"/>
    <s:CheckBox id="cbRB3" tabIndex="42"/>
    </s:FormItem>
    <s:FormItem label="Rub7">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR7"  width="220" text="Rub7" tabIndex="43"/>
    <s:CheckBox id="cbRB7" tabIndex="44"/>
    </s:FormItem>
    </s:HGroup>
    <s:HGroup width="100%" horizontalAlign="left" resizeMode="noScale" verticalAlign="baseline">
    <s:FormItem label="Rub4">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR4"  width="220" text="Rub4" tabIndex="45"/>
    <s:CheckBox id="cbRB4" tabIndex="46"/>
    </s:FormItem>
    <s:FormItem label="Rub8">
    <s:layout>
    <s:HorizontalLayout/>
    </s:layout>
    <s:TextInput id="paUserR8"  width="220" text="Rub8" tabIndex="47"/>
    <s:CheckBox id="cbRB8" tabIndex="48"/>
    </s:FormItem>
    </s:HGroup>
    </s:Form>
    </s:Group>
    </windowSkin:NativeTitleWindow>
    [/Code]

    Hello Regina,
    That is what I did, and after your answer I checked everything again and I saw I did all right but when embeding the second ALV view by mistake I embeded the first one again.
    Now it is working!
    Thanks,
    Mauricio

  • Trying to display a visual component.

    I am using a JSP to run the application. And I used some freeware code to generate a panel component that I want to display on the JSP, yet I have no idea what I need to do, for I am very new to using the visual capabilities of Java. Thank you.

    I am using a JSP to run the application. And I used
    some freeware code to generate a panel component that
    I want to display on the JSPWhat exactly is your "panel component"? Is it a Java object (JPanel or similar?).
    JSPs are used to generate web pages (typically by writing HTML or XML on the fly) Once they are written, there is nothing "special" about these pages - they are just HTML pages displayed by a regular ol' browser (or they could be WAP etc, but let's keep it simple ;-)
    - so basically you can't directly display a java panel component with a JSP. If, on the other hand, your freeware generates HTML code which would show some kind of "panel component" in a browser window, then you're good to go!

  • Workaround to embed local database in visual studio 2013

    In Visual Studio 2013 there is no longer an option to create an sdf local database.
    Now how can I do to include a local database application?
    have I  create a normal database in SQL Express ?
    Thanks 
    www.Photoballot.net

    Hello,
    Yes, Microsoft seems to be dropping support for sdf. However, you still have workarounds available:
    http://yakimadev.com/how-to-add-sql-server-compact-database-sdf-to-visual-studio-2013-project/
    (SQL Server Compact Toolbox)
    http://sourceforge.net/projects/compactview/ (CompactView)
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Can I embed a link in a component?

    Mac G5, final Tiger, GL CS (not CS2).
    I need to place a link on many pages that will return the viewer to the home page, index.html.
    I plan to create a simple graphic shape in ID, convert it as necessary to a Smart Object, and save it as a component. I will then need to link it to the home page.
    Question is, once I link it as a component, will it retain that link each time I bring it into a page? Or will I have to create that link each and every time I bring in that graphic component?
    I think, once I give the component the link, it retains that link in every instance. But not sure.

    Yes you can
    Good political slogan too.
    Thank you.
    About to do the prelim work today Sunday.
    Maybe you know a shortcut or proper sequence of events to do the following:
    Create a graphic element in InDesign.
        (I refuse, by the way, to call it "a graphic," which is an anathema use
    of the word to an "experienced" designer.)
        (I refuse, also, to use the word "shrink" an item's dimensions. The
    proper term is "reduce.")
    Back to my question:
    Then save it as a PDF.
    Bring it into GoLive.
        I've found that it can't be brought into the proper folder via the
    Finder. It has to be brought from the Finder into the Site Window itself.
    Try to place it in a page as a Smart Object or as a Component.
    It then brings up the Optimize dialog.
    Optimize and Save the (now former) PDF as a .jpg or .gif..
    Can you focus that or improve on it? I have done it a few times, widely
    spaced in time, and that is what I THINK is proper sequence. I'd like to
    systematize it a bit more.
    Again, thank you.

  • Can i embed adobeflash in my visual basic software?

    is there any support or free code so that i can use flash-ads in my VB-software?

    is there any support or free code so that i can use flash-ads in my VB-software?

  • JMF; Visual component is showing black screen

    Hello All!
    I have a very strange problem. I have a JDialog programmed to show a movie for a given url.
    I can run a movie using a button on my Frame, every single time that button is pressed a new JDialog opens and shows the video. It works fine.
    Now after 10th time when i press the button Dialog opens movie plays but i can only hear the audio and cant see video as getVisualComponent doesnot return null but shows a black screen.
    Any idead about that? I have made sure that no JDialog is opened unless a previously running movie is stopped and mediaPlayer is deallocated.
    Please please help me, i am in a great urgency...
    Regards,
    Alam Sher

    ..Any idead about that?The problem is probably caused by the code you
    did not post. I suggest preparing an SSCCE that
    demonstrates the problem, and post it to the forum.
    <http://www.physci.org/codes/sscce.html>
    If you post an SSCCE, I (/others) can try it
    here(/there) on my(/their) own PC.
    (It would help if the example code could iterate
    through playing all videos in a directory..)

  • Prepare_dynamic_navigation to embed in another component

    Hi,
    I have two components A and B. A uses B as used component. Both A and B have  I  as used component. I is the interface component for visual components. Component VC implements interface component I.
    My requirement is to put component VC in a view container in component B. But A should act as the controlling component and should take care of creating component VC and embed the created component VC into view container of B. Is it possible using prepare_dynamic_navigation method?
    I am using the code as follows in component A:
    try.
          l_view_controller_api->prepare_dynamic_navigation(
                 source_window_name          = 'WI_MANAGECOURSE'
                 source_vusage_name          = 'MAIN_USAGE_1'
                 source_plug_name            = 'GOOUT'
                 target_component_name       = 'B'
                 target_component_usage      = 'MAIN_USAGE_1'
                 target_view_name            = 'WI_GENERICRM'
                 target_plug_name            = 'DEFAULT'
                 target_embedding_position   = 'VI_MAIN/VIEWCONTAINER' ).
        catch cx_wd_runtime_repository.
          raise exception type cx_wdr_rt_exception.
      endtry.
    Create the actual visual Component
      if wa_cmp_usage-component_usage->has_active_component( ) is not initial.
        wa_cmp_usage-component_usage->delete_component( ).
      endif.
      wa_cmp_usage-component_usage->create_component( 'VC' ).
    This code gets executed fine but some where in the ABAP frame work class, I get the error:
    "Component Usage VIEW_INTERFACE Has No Component. Application May Not Have Created an Instance "
    VIEW_INTERFACE is the component use for interface I in both components A and B.
    Regards,
    Srini.

    Hi,
    The problem is resolved after I moved the embedding on to the same component. But I doubt whether it would be possible to use prepare_dynamic_navigation to embed in another component.
    Regards,
    Srini.

Maybe you are looking for

  • ASA 5505 ISP Failover (PPPoE/DHCP)

    Hello, I have 2 WAN uplinks: The primary is VDSL (PPPoE) - very fast, and I have a static IP + /29 subnet 'assigned' to me. The secondary is DSL (DHCP) - slower What I'm trying to do is setup ISP failover on my ASA 5505 with security plus licence...

  • How can I keep iPhoto from opening?

    I'm currently using iPhoto v5.0.4 and Panther 10.3.9, and am fairly new to both. My question is how can I get iPhoto to stop automatically opening and loading my photos into it when I insert my memory stick into the card reader attached to my Mac min

  • HT1589 problems with itunes after updating..can't locate some of my songs..some have an exclamation point beside them how do i get these songs back in my itunes

    I'm having problems with itunes after updating. I've lost all my playlists,,finally played around with it and got the songs back but some have an exclamation point beside them and can't be located. they are songs i've purchased. I'm not very computer

  • Help reqd for Selection Screen Input paramter

    Hi Friends, I've developed a noraml ALV grid report which have Date selection option as input selection parameter. In that , I want to declare last month date as defualt value to date-low range. Whenever the Tcode is entered, it should show the date

  • Trusted Source

    I need to execute a JavaScript outside of the scripts panel, triggered by another process. Each time I run the script, I receive the message: >You are about to run a script in InDesign CS3. You should only run scripts from a trusted source. Do you wa