question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pass additional information to the server selector from the client

See original GitHub issue

Is it possible to have a server side filter/selector that’s other than userId? I have the data stored in a Session, but not sure how to pass it back to the server for security other than the basic userId.

TabularTables.Books = new Tabular.Table({
  // other properties...
  selector: function( userId ) {
    return { documentOwner: userId }
  }
});

Ideally, it would be great if we can pass in the collection at the time of rendering the template, something like.

{{> tabular table=TabularTables.Books data=.}}

where . represents the the data array of elements passed by iron router.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:10

github_iconTop GitHub Comments

1reaction
aldeedcommented, Jan 8, 2016

@allenfuller changeSelector function should work for you. See https://github.com/aldeed/meteor-tabular#modifying-the-selector

1reaction
Framnkcommented, Mar 7, 2015

Hi, I have a similar need to pass a parameter to the server-side publish for validation. I’m using the Roles package and I need to verify that a user has a certain role for a specific role group that I’d like to pass to the publish when subscribing. While I can check the roles for userId I don’t have enough information without being able to pass the role group I am checking for as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Passing parameters from client to server when submit a form
Hi I would like to know if there is a nice way to pass additional parameters from client side to servers side when...
Read more >
Using Python Flask and Ajax to Pass Information between the ...
The following provides an example of how we can pass information from the client to the server in a Python Flask application.
Read more >
Client-Server Overview - Learn web development | MDN
Additional information can be encoded with the request (for example, HTML form data). Information can be encoded as:.
Read more >
Client installation parameters and properties - Configuration ...
Learn about the ccmsetup command-line parameters and properties for installing the Configuration Manager client.
Read more >
tcp - Number of clients at Server and Client Varies Java NIO
I am just accepting connections and not doing any read/write. This could be very fundamental but I am stuck and unable to debug...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found