What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

How to add Edit Functionality in Spryker Zed Table ? Is it work default or do we need to add custom

U03DQ4D8L65
U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

How to add Edit Functionality in Spryker Zed Table ? Is it work default or do we need to add custom code?

Comments

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 πŸͺ - Explorer

    Example: \Spryker\Zed\Acl\Communication\Table\GroupTable::createEditUrl

    You will need a separate controller action with an edit form and inside the table there is only a button that will call the url to receive the edit form.
    Inline editing in tables is not possible out of the box.

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    Got it.

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    Do you have any reference to create edit function?

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    How to retrieve edit information?

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 πŸͺ - Explorer

    See \Spryker\Zed\ProductManagement\Communication\Form\ProductFormEdit and \Spryker\Zed\ProductManagement\Communication\Form\DataProvider\ProductFormEditDataProvider for reference.

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    Ok

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    @UL6DGRULR I didn’t find \Spryker\Zed\ProductManagement\Communication\Form\ProductFormEdit

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 πŸͺ - Explorer

    It's part of the vendor, except when your project is not using the product management backoffice functionality.

    But you can search for any other *FormEdit class and the related *DataProvider

  • U03DQ4D8L65
    U03DQ4D8L65 Posts: 46 πŸ§‘πŸ»β€πŸš€ - Cadet

    Ok