Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
OGX.JS capture values from route

I'm using OGX.JS. I'm trying to add a dynamic route to a view but I can't seem to capture the values. Here is my route.

  "mystage/invoices/([a-z0-9]{24})/([a-z0-9]{24}):OML": "invoices"

In my view invoices I have

   this.construct = function(__data, __route_data){        
        console.log('ROUTE', __route_data);
   };

But __route_data is null

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Welcome to SO. You have to declare the property of the object in your route such as

  "mystage/invoices/propertyA:([a-z0-9]{24})/propertyB:([a-z0-9]{24}):OML": "invoices"

Then it should be available in __route_data as

 __route_data.propertyA
 __route_data.propertyB
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!