OBY6 - need to expand a field

Hi all,
so I would need to expand a field in Additional Deatila of a Company Code. Old tax number was length 8 and new is length 11. Any pointers?
Thank you and best regards!!
D.

SM31 transaction and the table is T001I, V_T001I. Then you just find the field you need and change the length. Did not try to add new fields.

Similar Messages

  • I Need help wrapping an expandable text field to the next page, while pushing a subforum beneath it

    Hi, I hope I can get some help with this form that I am desperately trying to finish.
    I am unable to get an expandable text field to recognize both 1.) the positioned subforum underneath and 2.) the page break. I'll attach the file if it helps get an understanding of what I mean, and maybe someone can see what I did to royally screw it up. The area of the form in question is on page 4 of the attached document. I want the user to be able to write as much as they need in the summary section, and still fill out the last section afterwards.
    If more info is needed, let me know and I will do my best to describe what I did. My last solution I tried, before giving up, was to wrap the previous section, as well as the next section of the expandable text field, into its own subforum. Then, I nested the subforums together in another subforum.
    Thanks in advance.
    -Joshua
    Attachment Link:
    https://docs.google.com/open?id=0B2iKKEocs4_gTTlwZEpHTWxZVkE

    In case anyone sifting through forums, looking for the answer to this question, needs the answer: paulk07 was able to fix my document by unwrapping all of the subforms on the last page and then wrapping it in only 3 subforms (2 positioned/1 flowed) and then set the page to flow.
    From there, I set the margins so when the sectioned wrapped to a new page, it didn't end/begin at the edge of the page.
    Thanks again paulk07

  • Expanding text field to allow for multiple pages

    Hi all,
    Disclaimer: Not a JAVA/programmer type. I typically Google things to death and try to learn from there. Created a form and followed some other's suggestions but I'm in a bind with expanding a field (text field) to allow for users to enter info and for it to print the full entry once submitted.
    I changed the form to be sent using the email button to select recipients and as a pdf doc. I'd like to keep it this way. I created the form and didn't use a template. I just signed up and am looking for the button to attach the doc, created in Livecycle Designer ES with the hopes that someone could take a look at it. Can't find the attach button. If someone can provide their email address to take a look, that would be great.
    Niall, I've been reading your posts and actually tried copying/pasting in one of your fields (re: subform as Flow, etc) but so far, no luck.
    I selected all the usual variables for the subform/text box:
    Allow Multiple Lines, Allow Breaks, Expand to Fit (Height).
    Please advise if someone would be available to take a look and I'll send it to you. Thanks in advance for any recommendations/availability.

    Hi Jeff,
    Yes you can force the highlight colour on using the following script in the docReady event of the root node (normally form1):
    app.runtimeHighlight = true;
    You can also change the highlight colour, but this is a personal choice. Generally I would leave it at the default. This ways users are getting the same experience.
    For the email submit, there are a couple of choices. If you use a regular button (instead of the Email Submit Button) you can script for custom recipients, subject line and message. There are examples here. You are probably better sticking with the example for versions of Acrobat/Reader v9 and below. You are looking for the last button. The script can be reduced to match your requirements.
    http://www.assuredynamics.com/index.php/code-solutions/email-solutions/
    If you want to share a form, you will need to upload it to a file sharing site, like Acrobat.com and then post the published link here.
    You can use a regular button for the URL, so that on the click event the user is directed to Adobe's site:
    app.launchURL("http://get.adobe.com/reader/", true);
    Lastly you must Reader Enable the form before you send it out.
    Good luck,
    Niall
    Assure Dynamics

  • Expanding text fields side-by-side in a 2 column layout

    Hi,
    I've been trying to create a form that is a 2-column layout. This form contains expanding text fields that are side-by-side with additional form elements underneath. I managed to get the expandable fields to work, however, if the user writes too much in the text field in the left-hand column and it wraps onto a second page, the text field in the right-hand gets pushed to the second page. I am wondering if someone has experience with this and could help me figure out how to make sure the text field in the right-hand column stays in place as the text field in the left-hand column expands onto 2 pages.
    I've tried to wrap each text-field in their own subform that stays fixed, but that seemed to cause the field to expand over the elements below it.
    Take care,
    Carolyn

    Luke23ae wrote:
    for my bachelor-thesis I'm trying to create a 2 column layout in pages. The left column should contain all contents, the right column should only contain notes and additional information supporting the 'main' column. So the right column only contains a little text every now and then. Using the Layout Inspector and setting up 2 columns fills the right column automatically withe the contents overflowing the left column. What I'm hoping to archive is to create a 2 column layout leaving the right column blank, allowing me to insert Text-fields (unless there's a better way) wherever I need to add an annotation.
    Hi Lukas,
    Welcome to Apple Discussions and the Pages '09 forum.
    Since you want the text to flow from page to page in the left column, it would appear best to use a single column for the main text, and to limit the width of that column using the right margin stop.
    That leaves the right half of the page open for a series of text boxes (or shapes, as shown) to contain the notes and additional information.
    I would start with a single text box or shape, resize it to the width you want, then duplicate that one each time you need a new box. That way all your text blocks have a common width to begin with, and if you take care to use only the handle at the center of the bottom edge to resize them, you will not disturb that width setting.
    As noted earlier, the floating objects will not automatically travel with the text they apply to if editing causes that text to move.
    Regards,
    Barry

  • How can I expand text fields in my PDF file which I built in Forms Central?

    I'm working in Windows 7 and just created my first form in Forms Central. I have many text fields that I intended for the end user to be able to type as much information in them as necessary. I selected the "multiple lines of text" setting for each of these fields. I was told by someone at Adobe a while back when I was trying to decide on learning LiveCycle Designer or using the much more user-friendly Forms Central that the form fields would not automatically expand in the PDF form, but that I would be able to click or drag on the fields manually to expand them so that, ultimately, they could be printed with all the comments, for however many pages it would take. I've exported my Forms Central form to a PDF file. However, when I type multiple lines of text in the form fields I set up to be "unlimited," I cannot get the form fields to expand. What have I done wrong? Help, please!

    We are dealing with a similar situation.  We have downloaded LiveCycle and created the form, but as we knew would happen, the changes that come for the content of the form are causing us to max our trial version, and as soon as the form needs a change outside of the trial time period, we are faced with the next dilemma, as Adobe doesn't offer to purchase a single license at a reasonable rate.  The only reason we wanted LiveCycle was for the dynamic field feature.  I plead with you to consider offering that feature in Forms Central.  The other issue that we are having is that our users sometimes need to paste a table into the expandable text field.  Is that even possible in Live Cycle?  We don't at this point need the web-based functioning that Live Cycle offers. Thank you.

  • Expandable form fields?

    I am on a Mac and have CS6 with Acrobat X. I was going to purchase LiveCycle Designer but apparently it is PC only. I don't have a lot of time to learn or purchase a new program right now but will if I have to. Does Acrobat X have the ability to create expandable form fields? I am blown away at how hard this info is to find. Any help would be greatly appreciated. I am fairly new at creating editable PDFs. I have been creating them in InDesign and exporting as interactive PDFs.  Thanks!!!

    Brooklynmc wrote:
    Thank you. Is there a way to do expandable form fields on a Mac or will I have to work on a PC for the first time in my life? Is there a program that can do expandable forms on a Mac. I can purchase new software if I must. I am really trying to avoid buying LiveCycle (If it is even available anymore) and sitting at our PC station. I am 41 years old and have never worked on a PC. Thanks again!
    It will cost you some money but you can run LiveCycle designer on Mac.
    Here are steps:
    Separate Hard drive to put the PC Partition on ($100 or so)
    Software called Parallels (About $79.00)
    Windows 7 Software ($2-300 dollars depending on version)
    Live Cycle Designer (I think last I checked it was about $400.00)
    Install Parallels on Mac and setup windows pration on the external Drive.
    Install Windows on the external  External Drive.
    Install Live Cycle designer. On the PC Partition.
    You can use the Mac Printer in Parallels to Print.
    If you really need LiveCycle Designers features daily then this is the way to go.
    Plus you get the oportunity get the joy of fighting all the Viruses, Worms, Trogans, Malware and zero day event afforded to modern PC's It will be as if you bought a you a HP, Toshiba, Dell computer.

  • Log in form, working just need to expand.

    Hello all,
    I have built a flex log in screen, but need to expand it a bit.
    At the moment it takes the values from the form (username and password) and looks in a database if those values are their and returns either true or false,  flex then looks at this value and either directs you to a new state or brings an error.
    This is all fine,  btu in my database i have added an extra field "level"  so now i have "username" "password" "level"
    basically depending on what level you are i want you to see a different state.
    Here is my code so far.
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/mx" width="1024" height="768">
        <s:states>
            <s:State name="State1"/>
            <s:State name="Logged"/>
        </s:states>
        <fx:Declarations>
            <mx:HTTPService id="loginService" url="login.php" method="POST" result="loginResult(event)">
                <mx:request xmlns="">
                    <user>{username}</user>
                    <pass>{password}</pass>
                </mx:request>
            </mx:HTTPService>
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.rpc.events.ResultEvent;
                import mx.controls.Alert;
                [Bindable] public var username:String;
                [Bindable] public var password:String;
                private function tryLogin():void
                    username = usernameLogin.text;
                    password = passwordLogin.text;
                    usernameLogin.text = "";
                    passwordLogin.text = "";
                    loginService.send();
                private function loginResult(evt:ResultEvent):void
                    if (evt.result.status == true)
                        currentState='Logged';   
                    else
                        Alert.show("Login failedl", "Failure");
            ]]>
        </fx:Script>
        <fx:Style source="style.css" />
        <s:Panel x="387" y="242" width="250" height="146" title="Log in" dropShadowVisible="true" borderVisible="true" includeIn="State1">
            <s:Label x="10" y="25" text="Username:" fontFamily="Arial" fontSize="13"/>
            <s:Label x="10" y="55" text="Password:" fontFamily="Arial" fontSize="13"/>
            <s:TextInput x="85" y="20" width="153" restrict="a-z0-9A-Z" fontFamily="Arial" fontSize="13" fontWeight="bold" id="usernameLogin"/>
            <s:TextInput x="85" y="50" width="153" restrict="a-z0-9A-Z" displayAsPassword="true" fontFamily="Arial" fontSize="13" fontWeight="bold" id="passwordLogin"/>
            <s:Button x="168" y="81" label="Login" click="tryLogin()"/>
        </s:Panel>
        <s:Label includeIn="Logged" x="101" y="134" text="Welcome"/>
    </s:Application>
    and my php script
    <?php
    $hostname_conn = "localhost";
        $username_conn = "";
        $password_conn = "";
        $conn = mysql_connect($hostname_conn, $username_conn, $password_conn);
        mysql_select_db("videochat");
        //mysql_real_escape_string POST'ed data for security purposes
        $user = mysql_real_escape_string($_POST["user"]);
        $pass = mysql_real_escape_string($_POST["pass"]);
        //a little more security
        $code_entities_match = array('--','"','!','@','#','$','%','^','&','*','(',')','_','+','{','}','|',':','"','<','> ','?','[',']','\\',';',"'",',','.','/','*','+','~','`','=');
        $user = str_replace($code_entities_match, "", $user);
        $pass = str_replace($code_entities_match, "", $pass);
        $query = "SELECT * FROM usernames WHERE username = '$user' AND password = '$pass'";
        $result = mysql_query($query);
        $logged = mysql_num_rows($result);
        if ($logged == 1)
            echo "<status>true</status>";
        else
            echo "<status>false</status>";
        ?>
    Now i know i need to epxnad both, so that the php returns their level, but i am getting a bit stuck, any help ?
    Thanks

    hi,
    this is an example using zend services
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:valueObjects="valueObjects.*" xmlns:usersservice="services.usersservice.*">
    <fx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    protected function button_clickHandler(event:MouseEvent):void
    checkUserResult.token = usersService.checkUser(email.text,password.text);
    protected function checkUserResult_resultHandler(event:ResultEvent):void
    if (checkUserResult.lastResult != null)
    currentState="success" ;
    ti.text="welcome back, "+ event.result.UserName;
    else
    currentState="fail";
    protected function button1_clickHandler(event:MouseEvent):void
    currentState="State1";
    ]]>
    </fx:Script>
    <s:states>
    <s:State name="State1"/>
    <s:State name="success"/>
    <s:State name="fail"/>
    </s:states>
    <fx:Declarations>
    <valueObjects:Users id="users"/>
    <usersservice:UsersService id="usersService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
    <s:CallResponder id="checkUserResult" result="checkUserResult_resultHandler(event)"/>
    </fx:Declarations>
    <s:Panel width="350" horizontalCenter="0" verticalCenter="0" title="User Authentification" includeIn="State1">
    <mx:Form defaultButton="{login_btn}" verticalGap="10" width="100%">
    <mx:FormItem label="Email">
    <s:TextInput id="email" width="240"/>
    </mx:FormItem>
    <mx:FormItem label="Password">
    <s:TextInput id="password" width="121"/>
    </mx:FormItem>
    <s:HGroup width="100%" paddingTop="2" paddingLeft="2" paddingBottom="2" paddingRight="2">
    <s:Button label="login" id="login_btn" click="button_clickHandler(event)" width="100"/>
    <mx:Spacer width="100%"/>
    <s:Button label="cancel" id="cancel_btn" click="button_clickHandler(event)" width="100"/>
    </s:HGroup>
    </mx:Form>
    </s:Panel>
    <s:Button includeIn="fail" y="291" label="Go Back" horizontalCenter="0" click="button1_clickHandler(event)"/>
    <s:Label includeIn="fail" y="239" text="No Such User" horizontalCenter="0" fontSize="24" textAlign="center" color="#B11C1C" fontWeight="bold"/>
    <s:TextArea includeIn="success" x="500" y="147" id="ti"/>
    </s:Application>
    php:
    public function checkUser($email,$pass) {
    $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where EMail=? and Password=?");
    $this->throwExceptionOnError();
    mysqli_stmt_bind_param($stmt, 'ss', $email, $pass);
    $this->throwExceptionOnError();
    mysqli_stmt_execute($stmt);
    $this->throwExceptionOnError();
    mysqli_stmt_bind_result($stmt, $row->ID, $row->Level, $row->UserName, $row->EMail, $row->Password);
    if(mysqli_stmt_fetch($stmt)) {
          return $row;
    } else {
          return null;
    David.

  • Creating an expandable text field without a scrollbar

    Hi All! Hope someone can help.
    I need to create a flowable subform that will allow text fields to expand without a scrollbar. I have been researching the forums and have found this thread:
    http://forums.adobe.com/message/2372965
    When modifying the template above for practice, The fields expand correctly but when i make one from scratch it doesnt work at all!
    Here are the steps I have followed in creating a expandable text field from scratch:
    1. Open Adobe Lifecycle Designer and open a plain blank form
    2. Take a "text field" from the object library and place it on the form
    3. I noticed there is already a blue border (subform) for this document by default for the new form so I changed the content from "position" to "flowed", flow direction from "top to bottom"  and checked "allow page breaks". Also changed the layout for y: autofit
    4.  I then right clicked on the text fields orange border and clicked "wrap in subform".  I changed the content from "position" to "flowed", flow direction from "top to bottom"  and checked "allow page breaks". Also changed the layout for y: autofit
    5. Finally for the text field itself I made sure that "allow multiple linkes" and "allow page breaks within content" was checked. Also changed the layout for y: expand to fit
    I still cant get it work am I missing something? Ive been twirking around with this for hours and this forum wont let me upload my example. Any help would be great!

    Hi,
    You need to save the form as dynamic pdf form i.e xdp and on exit of the text field only text field will be expanded.
    But make sure the main form should be flowed and page breaks should be allowed.Textfield should have the allow multiple lines option ,allow page breaks,and auto expand height(Y axis) should be checked.
    Regards,
    ManjuVardhan

  • Retrieve Height of an expandable text field

    Hi,
    I have a table in a dynamic interactive PDF form. When the user enters text into a text field of the table, the field can expand over multiple lines. I want to know how I can retrieve the height of the expanded field so that I can resize other elements in the table such that they are kept in line with the expanded text box. It appears the height property (h) is always zero, and the maxH is also zero.
    Any help appreciated.
    Phil Rimmington

    It's possible to retrieve this information but you have to use the xfa.layout model instead of the xfa.form model in order to do so.
    By retrieving the h or maxH property of an object by doing
    this.h
    this.maxH
    means that you're accessing these properties from the xfa.form model which
    defines the objects on the form. This model, however, doesn't give you layout information such as the resulting number of pages in a dynamic form once data has been merged into it or, in your case, the actual/current height of a field which expands in height to fit its content.
    The layout information must be retrieved from the xfa.layout model using methods that take references to the object whose layout information is sought.
    In this case, we want the actual/current height of a field which is height-expandable. We therefore need to use the xfa.layout.h method as follows, in JavaScript:
    xfa.layout.h(TextField1, "mm");
    The first parameter takes a reference to the field in question and the second takes a string which identifies the unit of measure in which you want the height returned (the default is points (pt)). You can use "cm", "mm", "in", "px", "pt", etc.
    Note that you shouldn't use xfa.layout methods unless xfa.layout.ready returns
    true or else the information you get may be out-of-sync with how the form actually ends-up being laid-out.
    I've attached a sample form which has a multi-lined, height-expandable text field and a button. Clicking the button will produce a message box containing the actual/current height of the text field.
    Stefan
    Adobe Systems

  • Expanding text field & page numbers

    Got a form with an expanding text field.  Also have page # of # on the form.  When the text field expands to multiple pages, it overlays (?) the page # of #.
    Any idea on how I can not have the text field expand to cover it up ??

    The colors can be adjusted ....if its blue on your machine that is OK.
    Can you share the form with me so I can see what is happening?
    Can you send it to [email protected] and I will have a look. Please include a description of the issue in your email.
    Paul

  • Need to add new fields to the condition table

    Hello All,
    The requirement is to create the new condtion table for MM containing the following fields and maintain the entries in this table:
    - client
    - characteristic
    - class
    - internal characteristic.
    THe condition tables are created via tcode M/03 or through the customizing path
    Material Management > Purchasing > Conditions > Define Price Determination Process > Maintain Condition Table.
    The problem which i am facing is as follows :
    -SAP has the standard procedure for the generation of the condition tables . Selected fields are made available by SAP in the field catalog and we can select only from the those available fields. Once we select the required fields the condition table is automatically generated in the background.
    -As the requirement is, we need to have 4 fields in the generated condition table (client, characteristic, class and internal characteristic), but the problem is that none of these fields are available in the field catalog which is provided by SAP (in tcode M/03, M/04 and M/05).
    -Designing of the Z table wonu2019t be useful as we would not be able to use the Z table as the condition table.
    Can you please suggest how can we add the desired field to the existing field catalog in M/03 or is there any other alternate solution to this ?
    Thanks in advance for your help.

    >
    Rinkesh Doshi wrote:
    > Hello,
    >
    > The specific ABAP question which I have is :
    >
    > Is there any way in which we can enhance the existing field catalog in M/03 tcode to include the 4 new fields (client ,characteristic,class,internal characteristic) ?
    >
    > Thanks.
    Please post your code which you developped until now and show us where the problem is. I cant see any ABAP related question.

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

  • Need to expand tree by passing treeId thr URL not by clicking manually.

    Sub: Need to expand tree by passing Id thr URL.
    Hi,
    Here i have Library.java and ajaxTree.jsf files (collected from Jboss richfaces)
    There is having a list of artist .
    If u click on a particular artistname then the respective albums(with their checkboxes) will expand and show like a treenode.
    just look at d url : "http://localhost:8080/richfaces-demo-3.2.1.GA/richfaces/tree.jsf?c=tree&albumIds=1001,1002,1005,1008,1009,1010&client=0"
    I m passing album Ids and clientId in url browser and receiving in d Library.java.
    I need to expand the required client tree to show albums without clicking on artistname rather by passing the clientId from Url.
    I thnk one EventHandling class( PostbackPhaseListener.java ) is responsible for expanding but I m unable to understand.
    How can I do it.
    Plz help asap.
    /###############ajaxTree.jsf##########Start##############/
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:c="http://java.sun.com/jstl/core">
         <p>This tree uses "ajax" switch type, note that for collapse/expand operations it will be Ajax request to the server. You may see short delay in this case.</p>
         <h:form>     
              <rich:tree style="width:300px" value="#{library.data}" var="item" nodeFace="#{item.type}">
                   <rich:treeNode type="artist" >
                        <h:outputText value="#{item.name}" />
                        </rich:treeNode>
                   <rich:treeNode type="album" >
                        <h:selectBooleanCheckbox value="#{item.selected}"/>
                        <h:outputText value="#{item.title}" />
                   </rich:treeNode>
              </rich:tree>
              <h:commandButton value="Update" />
         </h:form>
    </ui:composition>
    /###############ajaxTree.jsf##########End##############/
    /************************Library.java*********Start****************/
    package org.richfaces.demo.tree;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.StringTokenizer;
    import javax.servlet.http.HttpServletRequest;
    import javax.faces.context.FacesContext;
    import org.richfaces.model.TreeNode;
    public class Library implements TreeNode {
         private static final long serialVersionUID = -3530085227471752526L;
         private Map artists = null;
         private Object state1;
         private Object state2;
         private Map getArtists() {
              if (this.artists==null) {
                   initData();
              return this.artists;
         public void addArtist(Artist artist) {
              addChild(Long.toString(artist.getId()), artist);
         public void addChild(Object identifier, TreeNode child) {
              getArtists().put(identifier, child);
              child.setParent(this);
         public TreeNode getChild(Object id) {
              return (TreeNode) getArtists().get(id);
         public Iterator getChildren() {
              return getArtists().entrySet().iterator();
         public Object getData() {
              return this;
         public TreeNode getParent() {
              return null;
         public boolean isLeaf() {
              return getArtists().isEmpty();
         public void removeChild(Object id) {
              getArtists().remove(id);
         public void setData(Object data) {
         public void setParent(TreeNode parent) {
         public String getType() {
              return "library";
         private long nextId = 0;
         private long getNextId() {
              return nextId++;
         private Map albumCache = new HashMap();
         private Map artistCache = new HashMap();
         private Artist getArtistByName(String name, Library library) {
              Artist artist = (Artist)artistCache.get(name);
              if (artist==null) {
                   artist = new Artist(getNextId());
                   artist.setName(name);
                   artistCache.put(name, artist);
                   library.addArtist(artist);
              return artist;
         private Album getAlbumByTitle(String title, Artist artist) {
              Album album = (Album)albumCache.get(title);
              if (album==null) {
                   album = new Album(getNextId());
                   album.setTitle(title);
                   albumCache.put(title, album);
                   artist.addAlbum(album);
              return album;
         private void initData() {
              artists = new HashMap();
              InputStream is = this.getClass().getClassLoader().getResourceAsStream("org/richfaces/demo/tree/data.txt");
              ByteArrayOutputStream os = new ByteArrayOutputStream();
              byte[] rb = new byte[1024];
              int read;
              HttpServletRequest request = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
         //     System.out.println("request.getParameter(param) "+request.getParameter("param"));
              //System.out.println("request.getParameter(client) "+request.getParameter("client"));
              //System.out.println("request.getParameter() "+request.getParameter("c"));
              try {
                   do {
                        read = is.read(rb);
                        if (read>0) {
                             os.write(rb, 0, read);
                   } while (read>0);
                   String buf = os.toString();
                   StringTokenizer toc1 = new StringTokenizer(buf,"\n");
                        String str1 = request.getParameter("albumIds");
                        int clientId1 =Integer.parseInt( request.getParameter("client"));
                   while (toc1.hasMoreTokens()) {
                        String str = toc1.nextToken();
                        StringTokenizer toc2 = new StringTokenizer(str, "\t");
                        String artistName = toc2.nextToken();
                        String albumTitle = toc2.nextToken();
                        String songTitle = toc2.nextToken();
                        toc2.nextToken();
                        toc2.nextToken();
                        String albumYear = toc2.nextToken();
                        Artist artist = getArtistByName(artistName,this);
                        Album album = getAlbumByTitle(albumTitle, artist);
                        String portfolios[] = new String[100];
                        Integer portfoliosId[] = new Integer[100];
                        int i = 0;
                        StringTokenizer st = new StringTokenizer(str1, ",");
                        while (st.hasMoreTokens()) {
                        portfolios[i] = st.nextToken();
                        if((songTitle.equals(portfolios))&&(!(songTitle == ""))){
                                  //System.out.println("ifff");
                                  album.setSelected(true);
                        i++;
                        album.setYear(new Integer(albumYear));
              } catch (IOException e) {
                   throw new RuntimeException(e);
         public Object getState1() {
              return state1;
         public void setState1(Object state1) {
              this.state1 = state1;
         public Object getState2() {
              return state2;
         public void setState2(Object state2) {
              this.state2 = state2;
         public void walk(TreeNode node, List<TreeNode> appendTo, Class<? extends TreeNode> type) {
              if (type.isInstance(node)){
                   appendTo.add(node);
              Iterator<Map.Entry<Object, TreeNode>> iterator = node.getChildren();
              System.out.println("walk node.getChildren() "+node.getChildren());
              while(iterator.hasNext()) {
                   walk(iterator.next().getValue(), appendTo, type);
         public ArrayList getLibraryAsList(){
              ArrayList appendTo = new ArrayList();
              System.out.println("getLibraryAsList appendTo "+appendTo);
              walk(this, appendTo, Song.class);
              return appendTo;
    /************************Library.java*********End****************/
    /************************PostbackPhaseListener.java*********Start****************/
    package org.richfaces.treemodeladaptor;
    import java.util.Map;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import javax.faces.event.PhaseEvent;
    import javax.faces.event.PhaseId;
    import javax.faces.event.PhaseListener;
    public class PostbackPhaseListener implements PhaseListener {
         public static final String POSTBACK_ATTRIBUTE_NAME = PostbackPhaseListener.class.getName();
         public void afterPhase(PhaseEvent event) {
         public void beforePhase(PhaseEvent event) {
              FacesContext facesContext = event.getFacesContext();
              Map requestMap = facesContext.getExternalContext().getRequestMap();
              requestMap.put(POSTBACK_ATTRIBUTE_NAME, Boolean.TRUE);
         public PhaseId getPhaseId() {
              return PhaseId.APPLY_REQUEST_VALUES;
         public static boolean isPostback() {
              FacesContext facesContext = FacesContext.getCurrentInstance();
              if (facesContext != null) {
                   ExternalContext externalContext = facesContext.getExternalContext();
                   if (externalContext != null) {
                        return Boolean.TRUE.equals(
                                  externalContext.getRequestMap().get(POSTBACK_ATTRIBUTE_NAME));
              return false;
    /************************PostbackPhaseListener.java*********End****************/
    Edited by: rajesh_forum on Sep 17, 2008 6:13 AM
    Edited by: rajesh_forum on Sep 17, 2008 6:18 AM

    Hi
    Can somebody please look into this?
    Thanks
    Raj
    Edited by: RajICWeb on Aug 9, 2009 4:38 AM

  • Small business needing to expand and deploy a network

    HI,
    I hope this is the correct forum to post this question.  If not, please move it to one more appropriate.
    We are a small company currently working from home but now have a need to expand into an office due to winning a contract with a large international organization.  We offer web market research services utilizing Web 2.0 techniques.  Our current 'network' infrastructure if you want to call it that is based around a standard home office scenarion - 24Mbit DSL 4 PC's, a couple of laptops, Dlink gigabit switch and the router from the telecom company.  Our printers are networked via the switch and we run Windows 7.  We have servers hosted in the Rackspace Cloud and with Amazon S3 but no current physical server.  Email is via a hosted Exchange package.
    Due to the new contract we will have to hire two to three additional personnel taking us to 7 staff in total and that requires a move to a dedicated office.  That wouldn't be much of an issue if we only needed to setup an office LAN but the crunch comes within the security protocols we are required to meet in the new contract.  We'll be storing customer data on servers and we'll require an audit of our systems once in place.  We will be scanned by our new client and expected to install a scanner appliance to be deployed on our internal network which will allow our new client to periodically scan us for network vulnerabilities.
    The key issue is that we have to have physical sight of the server that is holding the data, which also needs to have WAN access.  This server must reside on a network independent from our office LAN.  We'll need VPN access to this server.  The requirements document also demands a hardware firewall.  The new office has Cat6 cabling that routes back to a server room.  Apart from that, this room is empty.
    It's a bit of a daunting task and I'd like to know what equipment we'll require to setup two independent networks with WAN access.  The two new servers will probably come from Dell and will be rack mounted.  I'm sure we'll need the services of a network professional but I'd like to be clear in my own head about what components we will need to purchase to deploy this network, and what would be a suitable internet network connection.  The server for the new project will need to run a web and MySQL server and it will be accessed by around 600 people across Europe and the USA each month.  I can't give a clear figure on total bandwidth but the 600 people will be accessing a pretty standard WordPress site.  The number of users will increase to 6000 per month within 6 months.  On top of that office staff will be sending emails and using web services on a daily basis.  The office server will run Windows Server 2008 with 10 CAL's.  We have an initial capital budget of about $12,500.  Within 6 months we will need to deploy our own SharePoint server for this project.  A dedicated remotely hosted SharePoint solution will not be acceptable to the client.  More budget will be available for this.  Support will be delivered by Dell for the servers and network maintenance will be contracted out.
    Any help in making this a little less daunting would be much appreciated.
    Thanks in advance.

    Leo has given you some excellent advice ie. you cannot choose a kit list until you have a design. It just doesn't work the other way around. If you don't have the experience to design the solution then you can't really be choosing the kit. Otherwise when you do hire your consultant he might well be constrained by the kit already chosen and you will not get the best solution for your needs.
    Please don't take any of this the wrong way. NetPro is a great forum for helping people out with technical and design issues with Cisco equipment but there are times when NetPro is not the best solution and this is one of them. We could each give you a kit list of what we "think" is the best solution but that really should come from the designer.
    Jon
    Leo - will you please stop losing your points oops, and now they are back again

  • What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?

    Hello All,
    What are the steps needed to make the field in the DFF Additional Information for Agent only take numbers, commas & hyphens?
    Navigation
    Bob Sales manager<Ebiz form<service request tab<SR type<DFF<additional information for agents <cheque number
    The field Cheque number Character allowed (, -) in the DFF Additional Information for Agent should only take numbers
    Thanks & Regards
    Ayesha

    Thanks Sridar
    If we use Number we cannot separate the cheque numbers with , or -
    We need to enter numbers along with comma and '_' in cheque number field.
    Thanks & Regards
    Ayesha

Maybe you are looking for

  • Multi value parameter sniffing

    DECLARE @w1_p int, @w2_p int, @month_p int, @usdTHISweek_p float, @usdLASTweek_p float, @MASS_KIB_p nvarchar(max), @branch_eq_ccode_p nvarchar(max) set @w1_p=@w1 set @w2_p=@w2 set @month_p=@month set @usdTHISweek_p=@usdTHISweek set @usdLASTweek_p=@us

  • Can't re install MUSE?

    I uninstalled MUSE CC while doing a clean up of my PC. Now it wont re install. It keeps coming up with an error, 202 I think. How can I re install it. I need it urgently. I hit download and then when it goes to Application Installer it says that ther

  • Web Service for "Creating Sales Order" by using BAPI

    Hello All, I am trying to create a WS for "Creating Sales Order". The corresponding BAPI that I am using for this purpose is BAPI_SALESORDER_CREATEFROMDAT1. I am able to create the Web Service and run the WSDL on WS Navigator. But there is a problem

  • TO GRANT SYSDBA

    Hi, I want to grant sysdba privilege to ops$ user. For that i have to set the remote_login_passwordfile parameter in the init<sid.ora file to EXCLUSIVE ryt..But as there is no such parameter in the file, i added up one. But still the parameter value

  • Condition type EK01 missing in pricing procedure A V (error message V1206)

    Hi gurus, We get error message "condition type EK01 missing in pricing procedure A V" when creating a Billing request from a SErvice Order through TX-DP90. We reviewed customizing regarding this issue: ODP4 - SD Document linked to condition EK01 (thi