Skip to content

Instantly share code, notes, and snippets.

View SiddiqueAhmad's full-sized avatar

Siddique Ahmad SiddiqueAhmad

View GitHub Profile
@SiddiqueAhmad
SiddiqueAhmad / AnyController.java
Last active November 24, 2022 04:28
custom fonts in BIRT, integrated with Axelor
public class AnyController {
private final Logger logger = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
public void print(
ActionRequest request, ActionResponse response) {
List<Long> ids = (List) request.getContext().get("_ids");
String fileLink;
String title;
@SiddiqueAhmad
SiddiqueAhmad / Message.xml
Created July 1, 2022 05:40
axelor model entity listener, using events like preremove
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.4.xsd">
<module name="message" package="com.axelor.apps.message.db"/>
<entity name="Message">
<entity-listener class="com.edgesyn.message.db.repo.MessageListener"/>
</entity>
@SiddiqueAhmad
SiddiqueAhmad / app.js
Created February 12, 2022 14:57
upload file and form field
var express = require('express')
var app = express()
const multer = require('multer')
const upload = multer({ dest: 'uploads/' })
// POST /login gets urlencoded bodies
app.post('/sample', upload.single('uploaded_file'), function (req, res) {
console.log(req.file)
@SiddiqueAhmad
SiddiqueAhmad / company-dropdown-image.png
Last active October 10, 2021 05:48
to show company list on top in axelor, company folder is created under webapp folder of new module
company-dropdown-image.png

Keybase proof

I hereby claim:

  • I am siddiqueahmad on github.
  • I am siddique (https://keybase.io/siddique) on keybase.
  • I have a public key ASAAt-L3WzFSmjlDjnuwYtj0kiT0yjPrerfwIKCROmgEogo

To claim this, I am signing this object:

[{"name":" Schweppes Soft Drink (Ginger Ale,Tonic Water,300ml) ","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/5/4/5472.jpg","price":80,"lastpurchased":38},{"name":"Heinz Beans (Baked Beanz,415g)","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/0/0/003181_1.jpg","price":110,"lastpurchased":84},{"name":"Bounty Chocolate (Bar) 57g","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/b/o/bounty_chocolate_coconut_85_g__1.jpg","price":60,"lastpurchased":47.9166},{"name":"Old Elpaso Tortila 8 Flour Wraps 8 inch 311g","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/4/6/46000273426.jpg","price":350,"lastpurchased":295},{"name":"Mirinda Soft Drink (150ml)","image":"http://localhost/media/catalog/product/cache/1/thumbnail/9df78eab33525d08d6e5fb8d27136e95/0/2/020310090758_untitled-1_20copy.jpg","price":60,"lastpurchased":
@SiddiqueAhmad
SiddiqueAhmad / form.action.js
Last active June 16, 2020 14:22
related to selection based on dynamic select list
/*
* Axelor Business Solutions
*
* Copyright (C) 2005-2020 Axelor (<http://axelor.com>).
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,