This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

rubinskie3582
rubinskie3582

Hi, I'm new here... Trying to create a form using defered bindings. Got the list working using the following code:

public function create_onRelationManagePivotCreate()
    {
        $sessionKey = $this->relationGetSessionKey();
        $fid = post('foreign_id', 0);

        $product = Product::find($fid);

        $combination = new Combination;
        $combination->products()->add($product, $sessionKey);

        $relations = $combination->products()->withDeferred($sessionKey)->get();

        return ['#Lists-relationProductsViewList' => $this->makePartial('item_records', ['records' => $relations])];
    }

Don't know if I'm doing that right, but it works! :) My create_onRelationManagePivotUpdate() however (for editing pivot data when clicking on item), isn't working out. I can't even output something else in the modal popup other than errors :D

Someone got some tips? How to edit defered pivot data?

Oh and the only popup I get when trying to override the modal is the following one:

Last updated

1-1 of 1

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.