How to update a text field in inline editing?

How to update a text field in inline editing?

wonglikwonglik Posts: 44Questions: 5Answers: 0

I have a text field in a dataTable. When I try to update the text field using inline editing. I can't make any update in that text field because the return key just causing line return. But there is no problem with other data fields. Is there any way to fix?

Answers

  • wonglikwonglik Posts: 44Questions: 5Answers: 0

    Can make it just the same as editing varchar data fields?

  • allanallan Posts: 63,831Questions: 1Answers: 10,518 Site admin

    I'm afraid I don't understand the question - can you link to a test case showing the issue? Are you using textarea?

    Allan

  • wonglikwonglik Posts: 44Questions: 5Answers: 0
                Field::inst( 'planningcategory' ),
                Field::inst( 'remarks' ),
                Field::inst( 'remarks2' ),
                Field::inst( 'efficiency' ),
                Field::inst( 'sewing' ),
                Field::inst( 'heatpress' ),
                Field::inst( 'seamtaping' ),
                Field::inst( 'downfilling' ),
                Field::inst( 'ironing' ),
                Field::inst( 'lasercut' ),
                Field::inst( 'totalsmv' ),
                Field::inst( 'recorddate' )->set( false ),
                Field::inst( 'lastupdatedate' )->set( false ),
                Field::inst( 'lastupdateby' )->set( Field:: SET_EDIT )
        )
    ->on( 'preEdit', function ( $editor, $id, &$values ) {
        $editor
            ->field( 'lastupdateby' )
            ->setValue( $id );
    } )
        ->process( $_POST )
        ->json();
    
    
    
    
                        {
                                "label": "planningcategory:",
                                "name": "planningcategory"
                        },
                        {
                                "label": "Merchant_Remarks:",
                                "name": "remarks",
                                "type": "textarea"
                        },
                        {
                                "label": "IE FeedBack_Remarks:",
                                "name": "remarks2",
                                "type": "textarea"
                        },
                        {
                                "label": "efficiency:",
                                "name": "efficiency"
                        },
    

    When updating these 2 Merchant_Remarks and FeedBack_Remarks, It can't insert the text inside the 2 fields.

  • allanallan Posts: 63,831Questions: 1Answers: 10,518 Site admin

    As in you can't type into the textarea? There is nothing in the above to indicate why that would be the case. Can you link to the page so I can take a look please?

    Thanks,
    Allan

  • wonglikwonglik Posts: 44Questions: 5Answers: 0

    Do you mean you need to go through the Linux editor to see the editor program? Can you give me your email address to wonglik@hotmail.com. So that I can give you the program listings and the access path for the editor program.

Sign In or Register to comment.