Home > AS/400 Tips > WebSphere Strategies for iSeries professionals > Three tips for using WebFacing
iSeries 400 Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

WEBSPHERE STRATEGIES FOR ISERIES PROFESSIONALS

Three tips for using WebFacing


Jim Mason
09.15.2004
Rating: -3.50- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Trying to find your way around IBM's WebFacing? Site expert Jim Mason guides you through three tricky areas:

  • What to do if you change the DDS display file source member after you WebFace an application
  • Alternatives to executing iSeries commands
  • WebFaced app that limits customers' view of data

  • What to do if you change the DDS display file source member after you WebFace an application

    [ Return to top of page ]

    If you change the DDS display file source member AFTER you've WebFaced an application, Web development expert Jim Mason says you need to do the following:

    1. Reconvert only that specific DDS source file in your WebFacing application.
    2. Export your WebFacing application to a .war file again.
    3. Redeploy the .war file to your application server.

    The communication between the WebFacing Java code and the host 5250 RPG application is based on the DATA BUFFERS for input and output for each record format. Any changes to the buffers in your DDS display file or their contents require you to reconvert that specific display file.

    Alternatives to executing iSeries commands

    [ Return to top of page ]

    Web development expert Jim Mason says WebFacing doesn't handle system user interface screens in the current release. That means commands such as WRKSPLF won't work in a WebFaced applications. You have several options to handle this situation:

    1. Spend money (maybe lots) to get a different IBM or third-party solution (iSeries Access for Web, HATS, etc.). -- Bad idea
    2. Upgrade to the Advanced edition of WDSC, which has a spool file viewer built in. –- OK, but costs real money to upgrade
    3. Buy or find a spool file to PDF utility to generate PDF files from spool files. -- Not a bad choice
    4. Create your RPG application to select, view spool files and WebFace that. A number of customers have already done this. -- Good choic.
    5. Create simple CL "wrapper" commands with input parms for your key system commands. Then use the Web interaction wizard in WDSC to Web-enable the CL commands. You CAN'T get results from WRKSPLF, BUT for other commands it's great. -- Great where it fits

    WebFaced app that limits customers' view of data

    [ Return to top of page ]

    Is it possible to place some of WebFaced applications on the Internet for use by customers and make it so each customer views only their information? Web development expert Jim Mason says yes, but it takes some programming.

    Here's the basic model that his team followed:

    1. A customer logs in to a basic security Web application. (We have a simple Web security system.)
    2. During login, we record the user's customer name, account number as the current information in a session variable.
    3. When the WebFacing 5250 application starts, a CL program is passed the session variables as parms. The CL program runs an OPNQRYF using the customer number restricting orders to only those for this customer.
    4. We automatically populated the customer number field on the initial order inquiry screens by modifying the generated screens.


    Rate this Tip
    To rate tips, you must be a member of Search400.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    Web Tools
    Putting data from IBM i on Amazon S3 using i2S3
    TAATOOL: Useful tools for programmers on IBM i
    Programming for the Web on the IBM i, what is possible
    Zend Web software teams up with IBM System i
    Using geocoding on AS/400 to enhance your Web presence
    The iSeries Blog has a new home on IT Knowledge Exchange
    The best technologies and tools for System i programmers in 2009
    Search400.com Products of the Year 2008
    Application modernization strategies for System i
    Natively supported Web applications for Power running i

    WebSphere Strategies for iSeries professionals
    Application modernization strategies for System i
    Application modernization in the i world
    Natively supported Web applications for Power running i
    Enterprise open source basics
    Basic security considerations for a Domino/WebSphere system
    Simplifying data access using Java Standard Tag Library
    Integrating Microsoft ActiveX components with WebSphere
    Choices for running Web workloads on iSeries
    Virtual hosting for iSeries Web applications
    Automate WebSphere configuration backups on the iSeries (i5)

    Application Development
    iSeries calling an .exe
    Top 10 programmer tips
    Formatted work job scheduler
    Convert system date and time
    Mixing free format code with embedded SQL
    SQL update a field in one file from a field in another file
    Webcasts for iSeries programmers
    Programming advice from the pros
    Easy code copying via the drag and drop method
    Setting FTP time-outs

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    WebSphere Development Studio Client (WDSC)  (Search400.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    iSeries Security - Security Tools, Physical Security and System Security
    HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersProducts
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts