I am desperate. cfgrid populate problem

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default I am desperate. cfgrid populate problem

    I am preparing some intranet application. I want to hide customers CCnumber
    and list only last 4 digit. But I don't want this in input text. I just want to
    display as a simple text outside of input box. I am using cfgrid to populate
    data into form. if you had experienced, please let me know how to do it. Thanks

    ayhanyildiz Guest

  2. Similar Questions and Discussions

    1. Populate Flash Based Form from a cfgrid.
      Hello, I have a flash based form in CFMX 8. It has a two cfinput fields (first name, last name), I also have a cfgrid which displays a list of...
    2. how do you populate cfselect when cfgrid selected row ischanged
      hi can anyone enlighten me as to how to pass data to a cfselect from a cfgrid i am using a listner function so that the grid can populate form...
    3. OK...I'm desperate --fscommand problem
      Ive been banging my head on the wall for two days trying to get this to work. It is a PC flash app. I have a Flash movie published to an exe...
    4. DESPERATE: FormsAuthentication Problem
      I am having a very perplexing problem with setting the user's roles. I have tried to figure this out for 2 days now. When the user logs in to the...
    5. dynamically populate drop down menu option value problem
      hi I was wondering if anyone can help me out on this.... I have dynamcally populated a drop down menu with data from an access database using...
  3. #2

    Default Re: I am desperate. cfgrid populate problem

    Use:
    <cfoutput> .......#Right(CCNumber,4)#</cfoutput>
    OldCFer Guest

  4. #3

    Default Re: I am desperate. cfgrid populate problem

    Larry,Thanks for the answer but it is not the answer. I am populating data with cfgrid. I am binding data to form fields but I can not bind anything (or with your approach; output) but form fiels.
    ayhanyildiz Guest

  5. #4

    Default Re: I am desperate. cfgrid populate problem

    <cfform ....>
    <cfgrid ... don't set query here But do set other cfgrid parameters.>
    <CFLOOP query="queryname">
    <cfgridrow data="#FIELDNAME# ,#RIGHT(CCNUMBER,4)# ''>
    <CFLOOP>
    <CFGRIDCOLUMN name="FIELDNAME" >
    <CFGRIDCOLUMN name="CCNUMBER">
    </cfform>
    NOTE sometimes a space between the FIELD/FUNCTION( ) and the next comma is
    needed on the CFGRIDROW line...
    IE =<cfgridrow data="#FIELDNAME#[space goes here],#RIGHT(CCNUMBER,4)#[space
    goes here]''>


    Rodney Olivier Guest

  6. #5

    Default Re: I am desperate. cfgrid populate problem

    Originally posted by: ayhanyildiz
    I am preparing some intranet application. I want to hide customers CCnumber
    and list only last 4 digit. But I don't want this in input text. I just want to
    display as a simple text outside of input box. I am using cfgrid to populate
    data into form. if you had experienced, please let me know how to do it. Thanks

    Use the following :

    ...
    <CFGRIDCOLUMN name="CCnumber" Mask="XXXX-XXX-XXXX-9999" DISPLAY="No">
    ....

    <CFFORMITEM type="text" bind="{myGrid.SelectedItem.CCnumber}">

    Hope that helps.

    -Nick Kwiatkowski
    Hostingplace.NET Sr. Application Developer


    QueTwo Guest

  7. #6

    Default Re: I am desperate. cfgrid populate problem

    Thanks for the help Rodney Olivier and Nick Kwiatkowski.
    Nick your solution is right one for my application. Thanks a lot for the help.
    ayhanyildiz Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139