Hi Long,
Maybe a bad explanation. I try to explain. You know the repeater in Oxygen.
I have a CPT routes. When I do a repeater / wp_query on the CPT that I could load a shortcode [showroute] to do some functionality. That shortcode use the PostId that is queried. So this works:
rwmb_get_value( 'route_map' );
Now I use the MB View to load all the posts in the CPT. Within the loop I do the same shortcode [showroute]. But now there is no PostId so inside the shortcode I have to use rwmb_get_value( 'route_map','',$postid ); The $postid is send in the shortcode like [showroute postid=post.id]
For now I have replaces the shortcode to an function and do something like this:
{{ mb.route_function(post.ID) }}