Discuss anything related to web development but no technical support questions


Post by renangi100 »

Hi

I am not able to integrate Scheduler Component in Oracle Jet application
i am getting error,

unexpected token export in scheduler.module.js


Post by mats »

Can you please provide more details about your environment. Sounds like a legacy web context?

The error message "unexpected token export in scheduler.module.js" typically occurs when JavaScript code is trying to run in an environment that doesn't support ES module syntax (which includes the export statement) or where the code is incorrectly parsed.

Here are some common reasons this error might occur:

Incompatible Environment:

The code is using ES module syntax (import and export), but it's being run in an environment that only supports CommonJS syntax (which uses require and module.exports).
This often happens when Node.js is configured to run CommonJS modules (which it does by default) but is trying to execute a file that uses ES module syntax.


Post by renangi100 »

Oracle VBCS/Oracle Jet we need scheduler component


Post by renangi100 »

Hi Mats
I am madhu from Rite, i got reply from you

Sounds like you might need to use the UMD version without exports. Try using that? Please also ask further technical questions in our support forums: https://link.edgepilot.com/s/21238a4c/0ryxBsXsg0We_pX5prqEEg?u=https://forum.bryntum.com/


Post by mats »

Yes, the UMD version is for legacy browser environments not supporting modules. This should documented somewhere in the JET docs I believe.


Post by mats »


Post by renangi100 »

Hi Mats
How to load local source data using crudManager, please correct me

schdtls is my local data
 crudManager: {
          autoLoad: false,
          transport: {
            load: {
              url:''"
            }
          },
          loadCrudManagerData:schdtls,
           validateResponse: true
        }

Thanks&Regards
Madhu RiteSoftware


Post by marcio »

Hey Madhu,

We have a guide for that, please read the following documentation https://bryntum.com/products/schedulerpro/docs/guide/SchedulerPro/data/displayingdata#using-inline-data and if you need further clarification, please let us know.

Best regards,
Márcio


Post by renangi100 »

Thanks


Post by renangi100 »

Hi
I have issue with MapPanel, I want integrate Maps, is there any UMD version for MapPanel, Please let me know

 mapPanel = new MapPanel({
        ref        : 'map',
        appendTo   : 'main',
        flex       : 2,
        eventStore : schedule.eventStore,
        timeAxis   : schedule.timeAxis,
        listeners  : {
            // When a map marker is clicked, scroll the event bar into view and highlight it
            markerclick : async({ eventRecord }) => {
                await schedule.scrollEventIntoView(eventRecord, { animate : true, highlight : true });
                schedule.selectedEvents = [eventRecord];
            }
        }
    })

Post Reply