Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7985227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T11:29:55+00:00 2026-06-04T11:29:55+00:00

I have absolutely no idea how to get this to work. I can create

  • 0

I have absolutely no idea how to get this to work. I can create the models, but then I can’t run create or anything on them afterwards. I’ve been at this for 6 hours already… Please tell me where I’m going wrong :(!

1) Create a WorkflowCollection this.workflows = new WorkflowCollection(); workflows.length = 0.

2) Add empty workflows for each of the workflow ids (var workflow = [1,2,3]):

for(var i =0;i<workflow.length;i++;) { 
       this.workflows.add(new Workflow({fk_workflow_id: workflow[i]})); 
}

3) workflows.length = 3. Render the views for the current workflows:

var self = this; 
this.workflows.each(function(model) {
       self.renderView(model.get("fk_workflow_id"), model);
});

renderView for example, calls a function:

if(this.kit) this.kit.close();
        this.kit = new Workflow.PostageView({
            model: model
        // posView may change el? check later
        });

4) Fetch the new data to update the view’s models. DOESN’T WORK.

this.workflows.fetch({
    success: function () {
        self.workflows.each(function (model) {
            self.renderView(model.get("fk_workflow_id"), model);
        });
    }
});

5. Attempt to save a model:
FileApp.workflowRouter.pos.create is not a function

How come it can’t access create?! Full code: http://jsfiddle.net/8upZK/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T11:29:56+00:00Added an answer on June 4, 2026 at 11:29 am

    Ugh. After 6 hours, it was because I should have been using the COLLECTION to create/update, rather than the view. I don’t know why I chose the view (step 5).

    I.E. FileApp.workflowRouter.workflows.create(). Create/Add to a COLLECTION, not a view. Fuubar.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have absolutely no idea why this is happening but the following code seems
I have absolutely no idea how to do this, so I'm just gonna go
So I have this template design that is currently absolutely positioned, but I'm trying
Right, this is weird, I have no idea why this is happening, but what
I have tried for three days now and gotten nowhere on this.... I absolutely
Alright, I know questions like this have probably been asked dozens of times, but
I have been working on this problem for a while but still no joy.
I realise that there are other topics like this, but none of them really
I found this little gem in our codebase at work recently. I have to
I have absolutly no idea how to unpack the created archive. I give you

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.