Width changes due to formatmask

Hi
I have a text item with width = 3
there is a format mask on this item : 999
when generating the form designer changes the width to 4 :
designer message : Set Width property to 4 to show format 999
What should I do , so designer will not change that width automatically ?
thanks!

Designer is making room for a leading negative sign. In other words, it knows that a '999' format can contain a 100 or a -100. I believe (haven't tried it myself) that if you change the format to 'FM999' it will leave your width at 3, not 4.

Similar Messages

  • Error while changing due date deadline

    Hi,
    I am trying to change due date deadline of an action. I am getting this error. Please see if you can help me on this?
    I don't think this error is from my code.
    <p>
    <b>Root Cause</b>
    The initial exception that caused the request to fail, was:
       com.sap.caf.eu.gp.base.exception.InvocationException: Impossible to define a start date.
        at com.sap.caf.eu.gp.model.pfw.util.Deadline.setStartDate(Deadline.java:209)
        at com.sap.caf.eu.gp.model.pfw.notification.NotificationQueueItemsPersistence.retrieveDeadline(NotificationQueueItemsPersistence.java:912)
        at com.sap.caf.eu.gp.model.pfw.notification.NotificationQueueItemsPersistence.retrieveNotification(NotificationQueueItemsPersistence.java:850)
        at com.sap.caf.eu.gp.model.pfw.notification.NotificationQueueItemsPersistence.retrieveNotifications(NotificationQueueItemsPersistence.java:1032)
        at com.sap.caf.eu.gp.model.pfw.notification.NotificationManager.retrieveNotifications(NotificationManager.java:563)
        ... 135 more
    <p><b>
    Detailed Error Information</b>
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exception was thrown in preprocessing phase of application session ApplicationSession(name=com.sap.caf.eu.gp.ui.rt.Runtime, id=qFEa9dPuRZ1jAYyFzhCxAAECkPW7TnlHbbTL4aP4cq5Q/pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.caf.eu.gp.folders.gp/com.sap.caf.eu.gp.roles.runtime/com.sap.caf.eu.gp.worksets.runtime/com.sap.caf.eu.gp.pages.procinstance2/sap.com/cafeugpuirt/Runtime/base/). The causing exception is nested. RID=1dda6030410b11dead950050568f296d
    <br>  at com.sap.tc.webdynpro.clientserver.session.ClientSession.doPreprocessing(ClientSession.java:650)
    <br>  at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:225)
    <br> at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
    <br>  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
    <br>  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
    <br>  at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    <br>  at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    <br> at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
      <br>at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
      <br>at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
      <br>at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.dispatch(ApplicationHandle.java:320)
      <br>at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
    <br> at com.sap.tc.webdynpro.portal.pb.impl.LocalApplicationProxy.sendDataAndProcessActionInternal(LocalApplicationProxy.java:1043)
      <br>at com.sap.tc.webdynpro.portal.pb.impl.LocalApplicationProxy.create(LocalApplicationProxy.java:259)
      <br>at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1563)
      <br>at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:390)
    <br> at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:628)
      <br>at com.sap.portal.pb.PageBuilder.wdDoApplicationStateChange(PageBuilder.java:330)
      <br>at com.sap.portal.pb.wdp.InternalPageBuilder.wdDoApplicationStateChange(InternalPageBuilder.java:166)
      <br>at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doApplicationStateChange(DelegatingComponent.java:222)
    <br>  at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.doApplicationStateChange(ClientComponent.java:633)
    <br> at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doApplicationStateChange(ClientApplication.java:693)
    <br> at com.sap.tc.webdynpro.clientserver.phases.ResumePhase.execute(ResumePhase.java:65)
    <br> at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
    <br> at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
    <br> at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
    <br> at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
      <br>at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
    <br> at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1431)
      <br>at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1251)
      <br>at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:158)
    <br> at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
    <br> at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    <br> at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
      <br>at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
    <br> at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:81)
      <br>at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:507)
      <br>at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:527)
      <br>at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:458)
    <br> at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:249)
      <br>at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:699)
      <br>at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:231)
      <br>at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
    <br> at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
      <br>at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
      <br>at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
    <br> at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
    <br> at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
    <br>  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
    <br>  at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
    <br>  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
    <br>  at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)
    <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    <br> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    <br>  at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
    <br> at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
    <br> at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
    <br> at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
    <br> at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
    <br> at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
      <br>at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
      <br>at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
      <br>at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
    <br> at com.sap.engine.se
    Edited by: Pratik Khandelwal on May 15, 2009 7:01 AM
    Edited by: Pratik Khandelwal on May 15, 2009 7:02 AM

    Dear Prathik,
    Please share me how you have change deadline in runtime for notification.
    can u plss share the code and procedure it will be very thankful to u.
    Rajesh

  • Recently while we were overseas, it was time to renew our Adobe Convertor. We did so but forgot that our card number had changed due to the Christmas problem with Target. So we were denied. Could webe reinstated?

    Recently while we were overseas, it was time to renew our Adobe Convertor. We did so but forgot that our card number had changed due to the Christmas problem with Target. So we were denied. Could webe reinstated?

    Could you provide the name of the service that you subscribed to?  Adobe ExportPDF, PDF Pack, or anything else?
    I can move this post to an appropriate forum so that you can get help.

  • [svn:fx-4.x] 14699: Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children .

    Revision: 14699
    Revision: 14699
    Author:   [email protected]
    Date:     2010-03-11 06:20:06 -0800 (Thu, 11 Mar 2010)
    Log Message:
    Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children.
    QE notes:
    Doc notes:
    Bugs: FLEXENT-1248, FLEXENT-1250, FLEXENT-1253
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXENT-1248
        http://bugs.adobe.com/jira/browse/FLEXENT-1250
        http://bugs.adobe.com/jira/browse/FLEXENT-1253
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/automation/src/mx/automation/delegates/containe rs/ApplicationAutomationImpl.as
        flex/sdk/branches/4.x/frameworks/projects/automation_spark/src/spark/automation/delegates /components/SparkApplicationAutomationImpl.as

    Revision: 14699
    Revision: 14699
    Author:   [email protected]
    Date:     2010-03-11 06:20:06 -0800 (Thu, 11 Mar 2010)
    Log Message:
    Adding pop up children to the end of automation children array so that index of static children do not change due to these dynamic children.
    QE notes:
    Doc notes:
    Bugs: FLEXENT-1248, FLEXENT-1250, FLEXENT-1253
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXENT-1248
        http://bugs.adobe.com/jira/browse/FLEXENT-1250
        http://bugs.adobe.com/jira/browse/FLEXENT-1253
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/automation/src/mx/automation/delegates/containe rs/ApplicationAutomationImpl.as
        flex/sdk/branches/4.x/frameworks/projects/automation_spark/src/spark/automation/delegates /components/SparkApplicationAutomationImpl.as

  • [VF11] change due date when cancelling a document

    Hi everybody,
    I want to change due date (( FAEDT ) in FBL5N ) when cancelling invoices in VF11.
    I know that for that I need to change ZFBDT but I dont konw how .
    I need a user exit or a BTE or a Custo to make me change the due date.
    Thanks in Advance.

    Hi,
    As understand from your question, I think its better practice to change the baseline date either manually or automatically from some logic during the billing document creation.  This can be done through through the following userexit
    USEREXIT_FILL_VBRK_VBRP   or
    SDVFX004 or
    SDVFX008
    or
    As Mr.Lakshmiprasad explain in his message, make the default setting after concern with FI Consultant in OBB8.
    Regards
    Goutham

  • [svn:bz-trunk] 20695: Tomcat 7 Valve/ LoginCommand changes due to the ValveBase API and Realm API change.

    Revision: 20695
    Revision: 20695
    Author:   [email protected]
    Date:     2011-03-08 13:32:45 -0800 (Tue, 08 Mar 2011)
    Log Message:
    Tomcat 7 Valve/LoginCommand changes due to the ValveBase API and Realm API change.
    rename valve name as Tomcat7Valve
    will need to merge the build.xml after the build machine can fork a JDK 1.6 build
    Checkintests pass
    Modified Paths:
        blazeds/trunk/modules/opt/build.xml
    Added Paths:
        blazeds/trunk/modules/opt/src/tomcat/flex/messaging/security/Tomcat7Valve.java
    Removed Paths:
        blazeds/trunk/modules/opt/src/tomcat/flex/messaging/security/TomcatValve708.java

  • Force width change of readonly column

    Within a drag and drop ADF table, using an outputtext component, the column is shrunk to the width of the contents, likewise if I use an inputtext with the readonly attribute set to true.
    How can I force a readonly column to be a width greater than the contents ?
    Cheers,
    Brent

    Thanks Steven,
    I've posted it on the JDeveloper forum.
    Force width change of readonly column
    Cheers.
    Brent

  • Approval for change Due date in AR invoice through Paymnet Term

    Hi all!
    I try to query for approval with AR invoice change Due date in AR invoice through Payment Term.
    SELECT Distinct 'True' FROM OCTG T0  INNER JOIN OINV T1 ON T0.GroupNum = T1.GroupNum
    WHERE dateadd(day, T0.[ExtraDays],T1.[TaxDate])<>   T1.[DocDueDate] and  T1.[CardCode] =$[$4.0.0] and T1.[Docnum]=$[T1.[Docnum]
    I think we can not combine 2 variable for this form (
    T1.[CardCode] =$[$4.0.0] and T1.[Docnum]=$[T1.Docnum]
    Could you help me!
    Thanks!

    Hi Tien again.......
    In order to prevent the misunderstanding again please ket me know
    whether I'm correct or not.
    You want such kund of approval where if in the base document Payment Terms Net30 is there
    and in the target document if its changed to Net 60 then it should ask the approval while adding.
    M I right?
    Regards,
    Rahul

  • Movieclip stops after width change

    Hi,
    It's not my first time with flash, but it's with AS3. I'm
    having a problem and i don't get it. I'm working with Flash CS3
    PRO.
    The thing is that i'm working in AS3 with a movieclip. That
    movieclip has more nested movieclips within. So I've:
    + bicycle_01
    ++ body_low
    body_low is animated in bicycle_01. I've created a class that
    will manage my characters. (This is for a cyclist ranking). So
    within my main file I create the cyclist. I haven't even started
    and i found the first problem, i'm trying to change the width of
    body_low but it freezes. After i change the width of
    body_low,
    bicycle_01 stops playing.
    Here is my problem: _cyclist.getChildByName( "body_low"
    ).width = 10;
    If I add this line body_low width changes, but the animation
    stops. (right movieclip in
    this
    example)
    Any idea?
    Thanks. :)
    pd: Here is the fla and the two .as files:
    http://www.illarra.com/_lab/Follow-Flash/001.zip

    that's expected behavior: a timeline tween will be broken by
    actionscript that affects the tweened object.
    to remedy, use actionscript to tween your object.

  • How to change Due date in Cash flow (yet to post) lines in a contract.

    Hello All,
    I have a requirement where i want to change the due date of cash flow line items of a contract. I am able to do that in RECN transaction, by clicking on the date field and change the date. Here i am looking for a BAPI or function module using which i can update the date of cash flow items. Can anybody help me in doing this.
    Thanks,
    Bala.

    Hi Bala,
    we had a similar requirement during the initial implementation project.
    We have used BADI_RECD_CASHFLOW for this purpose. We have used both Methods - CHANGE_CASHFLOW_OBJ and CHANGE_CASHFLOW_PAY in such a way (for the last one):
      LOOP AT ct_pay ASSIGNING <ls_cashflow_pa>
                 WHERE ( cfstatus = 'P'              ) AND
                       ( origflowtype IS NOT INITIAL ) .
        IF <<condition>>.
          <ls_cashflow_pa>-dfaell = ....
        ENDIF.
      ENDLOOP.
    HTH,
    Siarhei

  • Change due date in receivables for credit check

    Hi Sappers!!
    Scenario: When SAP performs a credit check for a customer we need that pending receivables
    (open items) for this customer which have a concrete payment method, don't use due date
    for calculation, instead we want to use invoice date for carrying out the credit check
    calculation.
    Is that posible? Is there any user-exit where we can change this date to be used during
    credit check control for documents which fulfill this requirement?
    We don't want to change permanently the due date for this kind of documents, we only need to take another date into account when performing credit control.
    Thanks so much in advance & best regards

    Thanks so much for your quickly answer.
    Creating a new payment term is not a valid solution because, we don't want to change any date in the financial document. We just only need to use another data only for credit check. Here you have a concrete example:
    Invoice created with invoice date 01/12/2009
    Payment method confirming 90 days.
    Base line calculated: 01/03/2010
    If we create a new sales order, this open item will not be considered exceeded because due date is still in the future.
    We want to consider it as exceeded and the due date would be 01/12/2009 but only for credit check. This "new" due date must not be stored anywhere.
    Thanks so much once again & best regards

  • Are there any effects on IQ if LVM version is changed due to H/W issue ?

    Dear all,
    IQ15.2
    OS : HP
    I have a customer who has a plan to apply a patch of LVM due to H/W issue.
    Ct asked me that there are any effects on IQ when changing a version of LVM from 0903 to 1209.
    [H/W Issue]
    Table 1 LVM Fixes in HP-UX 11i v3 September 2012 Release
    In a cluster with 3 or more nodes, when VG recovery is in progress for at
    least 5 VGs on each node following a previous server node crash, one or
    more nodes may get TOC'ed by SG.
    On the TOC'ed node, most of the lvmkd daemons will have the following
    stack trace:
    Current Version of LVM
    BaseLVM B.11.31.0903 Logical Volume Manager
    Does anyone has a similar experiences?
    Any comments will be greatly appreciated.
    Thanks in advance.
    Thanks and Best regards,
    Gi-Sung, Jang

    Hi Mark
    Thanks for your reply very much.
    I's very helpful for me to support.
    thanks
    Gi-Sung Jang

  • Changing due date in SP GL transaction

    Frnds
    I posted a down payment request with Due date, but i need to change that due date, actualli tried to do itin FBL1N, with the selection of Special GL transactiona and Noted items,
    i am able to pull the document, but when it chage it from display mode, Due date field is not being active.
    how cani change th due date?
    thanks

    Ravi
    in ob32
    Field Name is BSEG-ZFBDT - Baseline payment date
    Rule is valid for....
    Account type K- Vendor line items
    Transaction type --  it is blank
    company code--- it is blank
    Possibility of changing the field.
    Field can be changed ( it is ticked)
    Stipulation for changing
    Posting period not closed ( Not ticked)
    Line item not cleared ( It is ticked)
    Custome debit of vendor debit (not ticked)
    No invoice related credit memo ( it is ticked)
    No credi memo from down payment ( It is ticked)
    Above is the configuration.
    please have look at it and let me know the solution
    thanks

  • Why does a UITableView cell.contentView.bounds.size.width change with cell reuse?

    I use `cell.contentView.bounds.size.width` to calculate the position of a text field in a UITableView cell. When the cell is created, debug code reports the width as 302. When the cell scrolls off the screen and then back on, the debug code reports that the it is 280--every time. It doesn't seem to want to go back to 302 and stays stuck at 280. The net result is that the text field gets put in the wrong place the second time the field is put into the cell's contentView, though it was put in the right place the first time.
    I figure 22 is significant somehow, but I don't know what it is. Guessing it might be the disclosure arrow, I moved the "clear the cell" code up front of the width determination, including setting the accessory to nada.
    Can anybody tell me what's going on here?
    The code (with irrelevant--that I know of--stuff snipped out) looks like this:
    <code>
        // Customize the appearance of table view cells.
        - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
            static NSString *CellIdentifier = @"Cell";
                  NSUInteger section = [indexPath section];
                  NSUInteger row = [indexPath row];
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
            if (cell == nil) {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
            // Configure the cell.
            while( [cell.contentView.subviews count] ){
                id subview = [cell.contentView.subviews objectAtIndex:0];
                [subview removeFromSuperview];
            cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
        8< snip!
                  CGFloat          theCellWidth = cell.contentView.bounds.size.width - 44.0;
                  CGFloat theLineHeight = [[UIFont boldSystemFontOfSize: [UIFont labelFontSize]+1.0] lineHeight];
            NSLog(@"cell.contentView.bounds.size.width %1.0f",cell.contentView.bounds.size.width);
            if (0==section) {
                            switch (row) {
                                      case 2:
                        while( [cell.contentView.subviews count] ){
                            id subview = [cell.contentView.subviews objectAtIndex:0];
                            [subview removeFromSuperview];
                        cell.selectionStyle = UITableViewCellSelectionStyleNone;
                                                cell.textLabel.text = @" ";
                                                cell.detailTextLabel.text = @"The Age";
                                                theAgeTextField.frame = CGRectMake(10.0, 2.0, theCellWidth, theLineHeight);
        //                NSLog(@"cell.contentView %@",cell.contentView);
                                                theAgeTextField.text = theAge;
                                                theAgeTextField.font = [UIFont boldSystemFontOfSize: [UIFont labelFontSize]+1.0];
                                                theAgeTextField.keyboardType = UIKeyboardTypeDecimalPad;
                                                theAgeTextField.borderStyle = UITextBorderStyleNone;
                                                theAgeTextField.userInteractionEnabled = NO;
                                                [cell.contentView addSubview:theAgeTextField];
                                                cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
                                                break;
        8< snip! (lots of closing braces and other stuff omitted)
            return cell;
    <hr>
    </code>
    **Want to try this one at home, boys and girls?**
    Start with a new Navigation-based Application. Put the following code into RootViewController.m:
    <code>
        - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
            return 5;
        // Customize the appearance of table view cells.
        - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
            static NSString *CellIdentifier = @"Cell";
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
            if (cell == nil) {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
            NSLog(@"cell.contentView.bounds.size.width %1.0f",cell.contentView.bounds.size.width);
            // Configure the cell.
            return cell;
    </code>
    There are only two changes in the default code required to make this happen: changing the number of rows in the section ("return 5") and the style of the cell must be _UITableViewCellStyleSubtitle_. Then, when you run the program, you'll see five lines of this:
    <code>
        2011-06-18 11:10:19.976 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.978 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.979 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.980 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
        2011-06-18 11:10:19.982 TestTableCells[7569:207] cell.contentView.bounds.size.width 302
    </code>
    Drag some cells off the screen (drag up--down doesn't do anything) and when they reappear, you get this:
    <code>
        2011-06-18 11:10:24.013 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
        2011-06-18 11:10:24.047 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
        2011-06-18 11:10:24.130 TestTableCells[7569:207] cell.contentView.bounds.size.width 320
    </code>
    Frankly, I'm frustrated as heck with this, and am so very tempted to pony up the $99 (without a working app, even) so I can have somebody at Apple weigh in on this one.
    <hr>
    Wanna' see something more interesting? Try this in place of the `static NSString...` line:
    <code>
            NSString *CellIdentifier = [NSString stringWithFormat: @"%d", arc4random() ];
            NSLog(@"%@",CellIdentifier);
    </code>
    Now, every time, the width in the log is _always_ 302. It would seem, then, that a reused cell has different content width than the original cell.
    Anybody got a clue on this?

    Hi,
    i guess the reason is that a newly create cell is create with a default frame by initWithStyle:
    But it's not yet added to any superview so you're logging that default size.
    After returning the new cell the tableViewController adds that cell as subview to the tableView which can lead to a resize of that cell.
    If the cell is scrolled off screen it's just removed from superview but stays the same size. If it's reused later it's still having the same size it had when removed from superview.
    Dirk
    initWithStyle:
    But it's not

  • HTML Report Viewer width changes from percent to pixel after postback

    Post Author: MikeDymond
    CA Forum: General
    Because of the page layout that the report needs to fit into I need to have the ReportViewer width set to 100% (that is 100% of a table cell, embedded within a complex web page). When you first view the page it looks fine, the ReportViewer is correctly set to 100% and fill the space it should. When you then hit the next page button it causes the page to refresh but this time the ReportViewer width is not set correctly. Looking at the code I can see that the relevant line in the HTML is:        <div id="cridcontainerCrystalReportsViewer" style="width: 100%; height: 712px; position:relative">and is correct when you first load the page. However after the Postback it is changed to:        <div id="cridcontainerCrystalReportsViewer" style="width: 100px; height: 408px; position:relative">and hence the page does not display as it should.Even if I force that value to be set in code every time the page is shown it still does not work if it is set to a percentage. If I force it to be set to 500 pixels it works as expected and the viewer is set to 500 pixels wide both before and after the postback.        <div id="cridcontainerCrystalReportsViewer" style="width: 500px; height: 408px; position:relative"> However that is not what I need to make the page look as it should. Anyone got any ideas? Is this a bug in the Viewer?Cheers Mike

    You talking here only about textboxes, what about the other controls in your form(dropdownlists, checboxes....)? How you will be validating the data on these forms? What if you want to implement server side functionality behind?. I'm asking these question
    just to see if you planned well for your idea. I guess you're going into this because you want to runaway of generating many forms via asp.net, is this correct?.
    Another options can be:
    Create forms that are generated on runtime based on your datasource, I've done this before but there was a specific DB design for that. Here you can read your DB and based on you can create the different types of asp.net controls, in addition to calling
    sever side controls and validation.
    The second option is to have a look at the InfoPath product, its mainly used for Sharepoint but not sure for asp.net.
    Fouad Roumieh

Maybe you are looking for

  • Spry Menu, IE troubles

    does anyone know how to fix this? http://www.ov-ds.com/penn_index.html please view in IE to see the prob. works fine in other browsers

  • Microsoft Visual C++Runtime Library Runtime Error when refreshing plugin list

    when i refresh the effects list, i get this runtime error: Microsoft Visual C++Runtime Library Runtime Errror Program: C:Program Files\Adobe\Adobe Audition 3.0\Audition.exe R6025 -pure virtual function call what do i do about this. if anyone has any

  • Load balancing - KeepAlive script

    Has anyone any experience of load balancing 2 Nakisa (.NET) web servers? Ideally I want to know which script I can use to test if the application is "alive". Stephen

  • PDF Creation hangs at "building font table"

    When printing the current page of a multipe page document, it takes at least two minutes to make the pdf... if it makes it that far.  Sometimes the print will fail with the messages: %%[ Error: undefined: OffendingCommand: t, ]%% %%[ Flushing: rest o

  • Can't set up AE

    My internet connection suddenly stopped working this morning. For any webpage I attempted to access, I was redirected to an AT&T (my ISP) page that said my DSL modem needed to be reconfigured. When I followed their links I got to an error page and co