Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 25 2022 15:24
    codingthat opened #158
  • Nov 25 2022 08:45
    codingthat opened #157
  • Mar 20 2021 08:34
    pablo-s closed #2
  • Mar 20 2021 08:34
    pablo-s closed #3
  • Feb 10 2020 11:57
    assiomatica commented #156
  • Feb 10 2020 11:24
    sipmann commented #156
  • Dec 17 2019 05:33
    assiomatica opened #156
  • May 30 2019 18:29
    RickyKnollo opened #155
  • Apr 03 2019 01:59
    sipmann commented #154
  • Nov 19 2018 22:24
    jrichardsz opened #154
  • Nov 19 2018 22:21
    jrichardsz commented #148
  • Nov 19 2018 22:16
    jrichardsz commented #148
  • Apr 23 2018 07:22
    RD1991 opened #153
  • Apr 11 2018 21:57
    AndreasEK commented #148
  • Jan 07 2018 22:01
    Drulac opened #152
  • Dec 18 2017 10:55
    badlee commented #147
  • Dec 16 2017 05:46
    francescobianco opened #2
  • Nov 06 2017 15:35
    CGeorges commented #151
  • Nov 06 2017 15:28
    CGeorges synchronize #151
  • Nov 06 2017 15:27
    CGeorges synchronize #151
CreativeWolf
@CreativeWolf
I'm lost there...view is controlled by the jade file
In this case, it would be JobSeeker
maxcorrads
@maxcorrads
if you specify a custom view via a Jade file then you can't use views?
CreativeWolf
@CreativeWolf
You can, but wouldn't it override?
maxcorrads
@maxcorrads
i don't think so; have to try, the jade file specify the layout, it doesn't filter data; i think it should work
CreativeWolf
@CreativeWolf
hmmmm
Let me try
Also looking at something like this...
maxcorrads
@maxcorrads
Here you can see the error after upload
http://imgur.com/fES26KL
Ideas?
CreativeWolf
@CreativeWolf
@maxcorrads Upload fails? Thought it worked yesterday...
maxcorrads
@maxcorrads
Yes it fails, it work as soon i use fast internet connection but with my regular ADSL that's the error.
maxcorrads
@maxcorrads
it looks like there is a timeout of 120 seconds, i'm trying to find it.
maxcorrads
@maxcorrads
Solved, i had to change the timeout of the request
file routes/crud.js
    route.uploadFile = function (req, res) {
     .....
      req.socket.setTimeout(10 * 60 * 1000); //10 minutes
    .....
CreativeWolf
@CreativeWolf
Ahh. Nice find that @maxcorrads :+1: :smile:
CreativeWolf
@CreativeWolf
Anyone has a fix for the baseUrlService.getBaseUrl() issue please?
Shea Phillips
@sheaphillips
hi - I'm getting 'less' errors on first allcountjs run after allcountjs init
LESS File error : '../lib/less/bootstrap/bootstrap.less' wasn't found LESS File : /Users/wombat/Development/hostman/node_modules/allcountjs/public/assets/less/main.less 1:0
...plus loads of 404 error in the javascript browser console...what am I missing?
genfild
@genfild
I do not understand how to fill in the file attachment programmatically?
CreativeWolf
@CreativeWolf
@sheaphillips I'm not on a computer right now, but search the archives please, this issue has been addressed...will try and get on a computer and update soon...
@genfild Please elaborate more..
Shea Phillips
@sheaphillips
@CreativeWolf dug through the archive and saw prior references, but didn't find specific solution. I played around with different node versions, re-initing (lots) as well as from different networks. no dice.
genfild
@genfild
several times to view messages, but found nothing.
CreativeWolf
@CreativeWolf
genfild
@genfild

I do not understand when to update the field 'status'

beforeSave: function(Entity, Console){
  Console.log("beforeSave");
  Console.log(Entity);
  Console.log(Entity.opf);
},

I see in the log editable fields { id: '576934e51bd8ad653db5e1b3', status: 'коммерческое предложение' }
but also to the immutable fields OOO

CreativeWolf
@CreativeWolf
@genfild I'm not able to comprehend, let me know what you are trying to do, I can try and help...
genfild
@genfild
I am trying to get a changed fields
when the user changes any field, I see in the log, but in fact have more access to all fields of Entity
I do not understand how to fill in the file attachment programmatically?
several times to view messages, but found nothing.
CreativeWolf
@CreativeWolf
@genfild You might want to try Console.log(Entityname.name);
replace Entityname to actual entity name
CreativeWolf
@CreativeWolf
Here's a working example...
     Applicants: {
        fields: {
          user: Fields.text("User Name").required(),
          applicantname: Fields.text("Applicant Name").required(),
          applicantemail: Fields.text("Applicant Email").required(),
          applicantphone: Fields.text("Applicant Phone").required(),
          positionapplied: Fields.fixedReference("Position Applied", "PositionsForReference").required(),
          positionorganization: Fields.fixedReference("Organization", "ClientForReference").required(),
          positionpostedby: Fields.fixedReference("Posted By", "ContactForReference").required(),
          applicantlastContactDate: Fields.date("Last Contact Date").required(),
          applicantstatus: Fields.fixedReference("Applicant Status", "AStatusForReference").required()
        },
        beforeUpdate: function(Entity, OldEntity, Crud, Security, Console) {
     Console.log(applicantStatus.name);
     Console.log(applicantStatus.id);
     return Security.asSystem(function () {
          if (Entity.ApplicantStatus.name != OldEntity.ApplicantAtatus.name) {
            if (Entity.ApplicantStatus.name == 'Applicant Joined') {
              return Crud.crudFor('Positions').find({}).then(function(last) {
                Entity.vacanciesopen = last[0].vacanciesopen;
                return Crud.crudFor('Positions').updateEntity({
                  id: last[0].id,
                  vacanciesopen: last[0].vacanciesopen - 1,
                  vacanciesclosed: last[0].vacanciesclosed + 1
                });
              })
            } else if (OldEntity.applicantstatus.name == 'Applicant Joined') {
              return Crud.crudFor('Positions').find({}).then(function(last) {
                Entity.vacanciesopen = last[0].vacanciesopen;
                return Crud.crudFor('Positions').updateEntity({
                  id: last[0].id,
                  vacanciesopen: last[0].vacanciesopen + 1,
                  vacanciesclosed: last[0].vacanciesclosed - 1
                });
              })
            }
          }
           });
           },
Hope that helps...
@sheaphillips Have you been able to get past the less error?
@sheaphillips As far as I could recall...there wasn't a follow up on this issue but one user reported this...and the stackoverflow link had such an issue reported as well...
But removing and reinstalling, initing the app again, solved it possibly...
Shea Phillips
@sheaphillips
@CreativeWolf no luck.. I even spun up a node 4.x docker container, and installed allcountjs from scratch, inited, etc. from there and got the same error.
Aarón Santiago
@aaron50x_twitter
hi everyone, i need to call btoa js native function from a beforeCreate CRUD callback, but an error raises saying that btoa is not defined :( ... can anyone help me to see what i'm doing wrong?
CreativeWolf
@CreativeWolf
@sheaphillips Which version are you using?
@aaron50x_twitter You'll have to use one of the CRUD Hooks, else will have to write custom AngularJS
Aarón Santiago
@aaron50x_twitter
@CreativeWolf i'm using CRUD hook beforeCreate
@CreativeWolf i need to use the function btoa
@CreativeWolf but an error is raised saying btoa is undefined
@CreativeWolf and also, when i try to use require() it also raises an error saying require is not defined :(
don't know what to do, stucked i this error
CreativeWolf
@CreativeWolf
@sheaphillips Check this please - https://gitter.im/allcount/allcountjs/archives/2016/02/01 and next two dates as well...
@aaron50x_twitter Can you paste the lines of code you are using please?