HTMLB Interface using XHTMLB: Urgent

Hi All,
Please visit the following link (<a href="http://help.sap.com/saphelp_nw04/helpdata/en/04/2ade41afba9c39e10000000a155106/frameset.htm">XHTMLB</a>).
This link also have two examples. Please look to these as well.
<b>1) Example using a GridLayout component.
2) Example using a TableView component.</b>
I could not make out how to use these xml files mentioned which are using the htmlb tags in the XML file for generating the UI.
I have searched on Google as well but could not get any other example for using XHTMLB. <b>The links I get from search are all related to BSP applications. But I want to use this using Java.</b>
Please can anybody help me in solving this problem!! Its a urgent requirement. Helpful answers will be definately rewarded.
Regards
Pravesh

It doesn't look like you are using any of your error clusters... this is a big no-no. You need to propogate the errors through your code and wiring them also makes sure your code is running in the right order.
In your first case structure you have the VISA Open and VISA Read right next to each other without their error clusters wired. This means that the Open is not necessarily happening before the Read.
(You are also only reading 1 byte there, I don't know if that was intended, but you might need to read more than 1 byte.)
Your timeout on your VISA is set to "4294967295". You might want to lower that so that your code doesn't just sit. Timeouts are helpful as long as they're set reasonably.
Handle your error clusters and give it a try again to see if that fixes anything.
Edit: looking back at your code, that first 1 byte read mixed with your Open/Read situation is probably your issue if everything else is set up correctly. You're reading 1 byte and then parsing it in to a bunch of other information, which means 1 byte is not enough. Set your timeout higher and read more bytes. If not enough bytes come in, it will timeout and give you whatever did come in. Ideally you would know how many bytes you're looking for.

Similar Messages

  • Differences between HTMLB, PHTMLB and XHTMLB?

    Hi Gurus,
    Can omeone help me to understand what the difference between these 3 BSP extentions: HTMLB, PHTMLB and XHTMLB?
    Unfortunatelly, I haven't found the clear explanation anywhere else...
    Thank you
    Vitaliy

    The reason for different libraries mainly has to do with creating different "versions" of elements if you will.
    HTMLB was delivered originally and does contain most of the basic elements as Raja has described. 
    XHTMLB came later and the X stands for eXtended.  It was introduced to support the first rollout of SAP's applications on top of BSP (mainly CRM). This new library had additional elements and some new versions of existing elements (TabStrip) for instance. 
    PHTMLB then came later still and the P stands for Patterns.  These elements are more composites and were the first steps toward being able to create UI patterns.
    There is also one other important difference between the major element libraries - what Design they support.  The Design (which is set in the htmlb:content element) controls behind the scenes which set of CSS and Script files are used. In other words they control which rendering engine will be used.  HTMLB support all designs - Classic, Design2002 and Design2003.  XHTMLB support Design2002 and Design2003. Finally PHTMLB only supports Design2003. 
    It is important to note that you should really only target Design2003 at this point.

  • Custom Interface using Entity Objects

    Right now, we can only define cutom interfaces using the Generic Loader. I was wondering if this functionality is going to be extended so that users can define custom interfaces using EOs instead of lct files.

    Hi Mugunthan,
    I have the exact same requirement, to know a little bit more BC4J Support, since we want to use iSetup to control the load of our Receivables Custom Database Tables also. I have opened an SR and they have forwarded to the Receivables Team, which i do not believe will help us, since our need is to know technically the iSetup Custom Interface process for BC4J. Can you point me out some documentation on this? my e-mail contact is [email protected]
    Regards
    Thiago

  • Getting error while running the Interface using AGENT

    Hi All,
    i am not able to run the interface using Agent service which running in the another machine, while running i am getting error message like
    java.lang.Exception: Error during Session launching
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    i ran the Agent services in Comment prompt, there i am getting the error like follows
    java.lang.NullPointerException
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.h.y(h.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    here i have mentioned the steps which i followed for creating agent service.
    i have two machine namely A and B both having the ODI
    i am going to use the B machine as a centralized server. so i edited the odiparams.bat file in B machine in ODI locaiton and filled the repository information
    from A machine i opened the Topology and created the Agent service there i mentioned the HOST name as "B" and port number 20300. and i configure the logical agent aswell
    from B machine i started the Agent service like agentscheduler "-port=20300".
    Agent service launched seccessfully.
    From A machine i tested the Agent. that also shown the successful window message.
    then i started running the interface using the agent i am getting the error which i have mention in the beginging.
    Interface which i ran will do the text file to table loading, so i kept that file in particular location in B machine( i have configure this location when i created the file data store in topology in A machine).
    Please help me to solve the problem...
    thanks
    nidhi
    Edited by: knidhi on Nov 26, 2009 6:54 PM

    Thanks For your Reply,
    I ran the agent as you said. here is my observation
    from the Machine B where agent is actually running, i could able to run the interface using agent service.
    but from the machine A while running the interface i am getting the following error message
    java.lang.Exception: Error during Session launching : Error during Session Preparation : You are trying to execute a session with an agent that is undefined in your repository. Please check the agent -NAME parameter.
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    i have created both physical and logical agent with the same name "DEMO_AGENT", and i ran the agent in the Machine B like
    agentscheduler "-port=20301" "-name=DEMO_AGENT"
    Please help me to solvethe issue...
    Thanks
    Nidhi
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:05 AM

  • How to find out what are the interfaces used for Job and Job Codes

    HI All,
    I just wanted to know how do we find out what are the interfaces used for Job and Job codes .
    Thanks In Advance
    Sunny

    Hi,
    Here is an idea for your request.
    Basically you can create a simple query on multiprovider 0TCT_MC01.
    Filter: you can use a variable for restriction of time ( calday, or calmonth) since you should be interested for a time period.
    Choose following characters into your objects:
    InfoProvider ( 0TCTIFPROV )  - you can create a variable for choosing infoprovider before query runs.
    *Tp.[Type of BI Application Object] 0TCTBISOTYP  = filter this with 'QUERY' or whatever your need is.
    *BI Application Object 0TCTBISBOBJ,  ( this will give you the name of the queries)
    In key figures choose,  Count for BI Appl. (0TCTWTCOUNT).
    (number for query run)
    Create a condition , for top 20.
    Hope this helps.
    Derya

  • How to avoid default selection screen in HR interfaces(using pnp ldbs)

    How to avoid default selection screen in HR interfaces(using pnp ldbs)

    Dear Rakesh,
    The report category is used to change the selection screen of programs that use the 'PNP' logical database.
    See links bellow:
    http://www.sapdevelopment.co.uk/hr/hr_repcat.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/229357553611d3967f00a0c9306433/frameset.htm
    Report categories for selection screen in HR programming
    Also visit the following blog:
    /people/alvaro.tejadagalindo/blog/2006/02/19/how-to-deal-with-hr-payroll-reports
    Regards,
    Naveen.

  • How to do an inbound and outbound interfacing using UTL_FILE ?

    dear members,
    How can we do interfacing from a legacy system to oracle and vice versa using the UTL_FILE package. I mean how to do an INBOUND and OUTBOUND interfacing using utl_file.
    regards
    sandeep

    in/
    file/
    bad/
    done/
    out/
    file/
    bad/
    done/
    I would start by ftping / putting the file in in/file/ folder, once ftp has completed move it to complete/ folder and process the file. If errorrs are generated move the file over to bad folder. If completed successfully move over to done folder.
    Having said that you would use UTL_FILE_DIR init parameter to set your directory.
    ALTER SYSTEM SET UTL_FILE_DIR='directory1','directory2' scope=spfile;
    Then you would use the regular utl_file packages to read / write to the files.
    UTL_FILE.FOPEN and so on.

  • How to do inbound and outbound interfacing using UTL_FILE?

    dear members,
    How can we do interfacing from a legacy system to oracle and vice versa using the UTL_FILE package. I mean how to do an INBOUND and OUTBOUND interfacing using utl_file.
    regards
    sandeep

    Hi Sandeep,
    I do not know if I got your question correct.
    Here is my understanding of it, pls correct me if I am wrong:
    You want to read from and write to the OS from inside the DB? Right?
    There are differnt waysa to do so, depanding on your Oracle version:
    1. you can use the initialization parameter UTL_FILE_DIR to specify a directory on OS where you can read from and write to through the package UTL_FILE.
    2. You can use a directory object in the DB to manage read write access to the OS. This is also usable with the package UTL_FILE as location where to read from and write to.
    => CREATE DIRECTORY my_dir AS '/home/oracle/my_directory';
    GRANT read , write ON DIRECTORY my_dir TO scott;
    SELECT * FROM dba_directories;
    You need CREATE ANY DIRECTORY system privilege for this.
    You can use directory objects also for external tables.
    With these you can read from flat files in teh directory on OS with a select statement as if it were a table inside the DB.
    Does this go into the direction you were thinking of?
    Hope it helps for the first.
    Regards,
    Lutz

  • To create interface using Integration Repostiory and Integration Directory

    How To create interface using Integration Repostiory and Integration Directory for Java appln???

    Hi,
    Are u talking about Java based applications. If so, one of the way is to go with Java Proxies.
    Go thru these for more:https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06315a6-e66e-2910-039c-ba8bbbd23702
    Rgds,Moorthy

  • ISetup new custom interface using BC4J/java class

    Hi,
    I am able to create new custom interface using the link :- How to setup an user to be Oracle iSetup Super user ? but I have not seen anything for BC4J filter set, as per oracle iSetup developer guide clearly explains step by step process how to create custom BC4J interface type, but they have not mention how to add filters, as per oracle developer guide we have to use 'iSetup Framework' for BC4J, if we select type as 'iSetup Framework' then we don't have option to add filter parameters.
    Any idea how to see existing  iSetup interface repository values, Search shows the result, but we can't go in details? any idea to see this?
    Oracle have good interface repository but most of them does not have option to filter, and  update so I want to customize them by adding new interfaces with filterable and update option
    Regards
    Anil

    First, be sure your properties file is in the root of the classpath.
    The Messages.properties or Messages_en.properties should be in the WEB-INF/classes/ directory of the war or as a root file of a jar included in the classpath (WEB-INF/lib).
    If it doesn't work, try adding a "/" before the file name. The classloader will try to find it as a root file of the classpath.
    For example:
              ResourceBundle messages = ResourceBundle.getBundle("/Messages", locale);
    If you are using sun appserver, the classloader hierarchy is configured by default from inside the war to outside, so it will search first in the WEB-INF/classes/Messages_en.properties and then it will search the file inside each jar file in WEB-INF/lib.
    If you want more information, check the classloader hierarchy of the appserver you are using.
    Hope it helps.

  • Interface Using BAPI for Uploading shipment datas

    Can any1 send me the example code for Inbound Interface using BAPI for Uploading shipment datas.please kindly send me the programs which u using with BAPI

    Hi
    Except hiring (or new joinee) for all other actions you can use below Function Module.
    HR_INFOTYPE_OPERATION.
    ~~~Ganesh Kumar K.

  • Interface used in loading flat file data into bw

    what is the interface used in loading flat files into the bw system.

    HI Flat file load is its own interface.  It leverages the S-API (Service API), the standard interface that is used to load data in the BI system.
    Start from this point:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03450525ee517be10000000a1553f6/frameset.htm
    Thanks for any points you choose to assign.
    Regards -
    Ron Silberstein
    SAP

  • Build interface using analytic functions twice

    Hi all, tell me please is it possible to build interface using analytic functions twice, like:
    select max(tt.val) from (
    select id, sum(val) val
    from (
    select 1 id, 10 val from dual union all
    select 2 id, 10 val from dual union all
    select 2 id, 30 val from dual union all
    select 2 id, 10 val from dual union all
    select 3 id, 20 val from dual) t
    group by id) tt
    thanks in advance

    HI,
    Just a question...
    You used only dual table. That correspond to the reality or is just as example?
    I mean, won't physical table be used?
    I believe you need that at target column, is that true?

  • Validating the htmlb inputfield using javascript

    Hi,
    I am trying to validate the htmlb inputfiels using the javascript,i want to get the value entered iin this inputfield in the javascript in order to validate
    plz help me on how do i get the value of the inputfield in the script.
    Thanks
    Ajay

    Hi
       please check the below example if it helps you
    <script language='JavaScript'>     
          function validateInputField() {
              var funcName = htmlb_formid+"_getHtmlbElementId";
              func = window[funcName];
              var inputfield = eval(func("xyzinputfield"));
              var inputFieldValue = inputfield.getValue();
              input  =  inputFieldValue.toLowerCase();
              if ( input.checkforsomecondition ) {
                           true perform some action
                else {  false display some message
                        alert( "please......... give some message upon failure " ); }
    </script>
    use some hbj code similar to this
    <tr><td width = 40%>
    <hbj:inputField
               id="xyzinputfield"
               type="string"
               maxlength="100"
               value="Your name here"
               jsObjectNeeded="true"
    />
    <hbj:button
               id="exbutton"                 
               value="Your name here"
               OnClientclick="validateInputField()"
    />
    regards
    jagdesh
    Message was edited by: jagdeshwar Manipatruni

  • Refresh temporary interface used in lookup

    I am using temporary interface to provide a datastore for lookup.
    temporary interface uses database schema for storage.
    How do I refresh lookup data? I can see that the interface that uses lookup just reference to table.
    Do I need to execute my temporary interface manually (or just before the main interface) to make sure my lookup is up-to-date?

    Can I use In Memory Engine to store results from temporary/yellow interface?

Maybe you are looking for