Re: Lookup fields doesn't work in modals

2021-07-29 Thread Daors Islami
Hello Jacques

I’m using the version 17.12.04 of OFBiz.


On Thu, Jul 29, 2021 at 10:40 Pierre Smits  wrote:

> Hi Daors,
>
> If you feel this is a bug, please fill out an Issue form in our JIRA (
> https://issues.apache.org/jira/secure/CreateIssue.jspa).
>
> Best regards,
> Pierre Smits
>
> On Wed, Jul 28, 2021 at 2:46 PM Jacques Le Roux <
> jacques.le.r...@les7arts.com> wrote:
>
> > Hi Daors,
> >
> > Which version are you using?
> >
> > Jacques
> >
> > Le 27/07/2021 à 10:13, Daors a écrit :
> > > Hello OFBiz Community, hope you're all doing good.
> > >
> > > I'm trying to use lookup fields in a layered-modal but lookup doesn't
> > show it just shows an empty input field with no lookup attached, do I
> have
> > to modify the screen in order the modal to support lookup fields, or how
> it
> > is, is there any solution on how to make lookup fields work in modals.
> > >
> > > Thank you,
> > > Daors
> > >
> >
>


Re: Upload image from postman

2021-07-13 Thread Daors Islami
Hi Jacques,

Thank you for your response I managed to find a solution and used
ServletFileUpload class for retrieving any type of files and then converted
it into byte arrays and was able to send it to the service,

Best regards,
Daors

On Sun, Jul 11, 2021 at 2:32 PM Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Hi Daors,
>
> What is the type of the uploaded file? Are all types failing?
>
> Jacques
>
>
> Le 08/07/2021 à 13:30, Daors a écrit :
> > Hello community of OFBiz hope you're doing good,
> >
> > There was a issue that I would like to address and that is uploading
> images/document from Postman,
> > I'm using the ofbiz-rest-impl plugin for exposing current ofbiz services
> as rest, I exposed one of the services for uploading content
> (documents,images) I encoded the url and then trying to send a request from
> Postman. F.E:
> >
> > {{localhost}}/rest/services/uploadContentService
> >
> > with a POST method and have two attributes inParams=
> > where there are encoded parameters and the other is
> > uploadedFile which is a file, but when I send the request I get this
> error:
> >
> > {
> >  "statusCode": 415,
> >  "statusDescription": "Unsupported Media Type",
> >  "errorMessage": "HTTP 415 Unsupported Media Type"
> > }
> >
> > I researched about this problem and saw that there are some cases where
> people said that you have to put jersey mediapart dependency to project in
> order to work but I checked it and is already there.
> >
> > Thank you for your time,
> > Have a great day,
> > Daors
> >
> >
> >
>


Re: Created plugins are not showing up in DEV Environment

2020-11-13 Thread Daors Islami
Thank you Schumann, I am trying it right now and I see that in the table
SECURITY_PERMISSION my plugin is not inserted there so now I'm gonna give
it a shot at what you said
and will let you know if it worked for me, also I tried to search at ofbiz
jira about your ticket but couldn't seem to find it, can you provide me
with a link

Thank you again man,
Best Regard,
Daors

On Fri, Nov 13, 2020 at 12:22 PM Schumann Ye 
wrote:

> Dear Doars,
>
> It's normally the authorization issue.  You just have to assign to your
> account with the newly created plugin permission.
>
> If you don't know where to find it,  you can try to look into the database
> table SECURITY_PERMISSION and see if your newly created plugin has been
> inserted there.
>
> If no,  it's likely your script doesn't work so you have to run gradlew
> "ofbiz --load-data readers=seed".
>
> Then try to run gradlew ofbiz.
> In case you still can't see it,  you just need to assign to your account
> with the proper authorization.
> For the details you can look at my previous jira ofbiz ticket.
>
> HIH
> mvh
> Schumann
>
> Get Outlook for Android
>
> 
> 发件人: Gil Portenseigne 
> 发送时间: 2020年11月13日星期五 17:40
> 收件人: user@ofbiz.apache.org
> 主题: Re: Created plugins are not showing up in DEV Environment
>
> Hello Daors,
>
> After installing your plugin, do you have it present in plugins folder
> in OFBiz root directory ?
> If so have you defined a webapp in its ofbiz-component.xml with the
> property :
> app-bar-display="true"
>
> Regards,
>
> Gil
>
> On Fri, Nov 13, 2020 at 09:35:39AM -, Daors wrote:
> > Hello OFBiz Community!
> >
> > I will try to describe the problem fast therefore not losing too much of
> your time, I deployed the OFBiz
> > into a web server online but there's a problem, the plugins that I
> created are not being shown or listed in the main menu tabs, there where
> the other webapps are displayed.
> >
> > I have tried installing the plugin when I created via the command:
> > `gradlew installPlugin -PpluginId=myplugin`
> >
> > I also tried building, cleaning, re-building and still when I deploy it
> to web server my created plugins are not being shown, am I missing
> something?
> >
> > Thank you for your time, really appreciate it.
> >
> > Best regards,
> > Daors
>
>


Re: Created plugins are not showing up in DEV Environment

2020-11-13 Thread Daors Islami
Hey Gil thank you for your response,

No I did not, and now I tried it but it is still not showing up at the main
tab menu, are there any other things that I might have missed?

Thank you so much,
Daors

On Fri, Nov 13, 2020 at 10:40 AM Gil Portenseigne <
gil.portensei...@nereide.fr> wrote:

> Hello Daors,
>
> After installing your plugin, do you have it present in plugins folder
> in OFBiz root directory ?
> If so have you defined a webapp in its ofbiz-component.xml with the
> property :
> app-bar-display="true"
>
> Regards,
>
> Gil
>
> On Fri, Nov 13, 2020 at 09:35:39AM -, Daors wrote:
> > Hello OFBiz Community!
> >
> > I will try to describe the problem fast therefore not losing too much of
> your time, I deployed the OFBiz
> > into a web server online but there's a problem, the plugins that I
> created are not being shown or listed in the main menu tabs, there where
> the other webapps are displayed.
> >
> > I have tried installing the plugin when I created via the command:
> > `gradlew installPlugin -PpluginId=myplugin`
> >
> > I also tried building, cleaning, re-building and still when I deploy it
> to web server my created plugins are not being shown, am I missing
> something?
> >
> > Thank you for your time, really appreciate it.
> >
> > Best regards,
> > Daors
>


Re: Question about lookup tag in form widget

2020-11-04 Thread Daors Islami
Hi Aditya and Pawan,

Thank you so much for the answers, I really appreciate it!
I will now look into them,

Best Regards,
Daors

On Thu, Nov 5, 2020 at 8:44 AM Aditya Sharma 
wrote:

> Hi Daors,
>
> Adding to Pawan's answer
>
> Refer macro here
>
> https://github.com/apache/ofbiz-framework/blob/trunk/themes/common-theme/template/macro/HtmlFormMacroLibrary.ftl#L521
>
> JS code can be found here
>
> https://github.com/apache/ofbiz-framework/blob/trunk/themes/common-theme/webapp/common/js/util/OfbizUtil.js#L208
>
> HTH
>
> Thanks and Regards,
> Aditya Sharma
>
>
> On Thu, Nov 5, 2020 at 1:11 PM Pawan Verma 
> wrote:
>
> > Hi Daors,
> >
> > I'm sorry due to time constrain I am providing a quick answer.
> >
> > The lookup field is rendered from renderLookupField macro which you can
> > find in HtmlFormMacroLibrary.ftl file.
> >
> > HTH!
> > --
> > Thanks & Regards
> > Pawan Verma
> > Technical Consultant
> > *HotWax Systems*
> > *Enterprise open source experts*
> > http://www.hotwaxsystems.com
> >
> >
> > On Thu, Nov 5, 2020 at 12:56 PM Daors  wrote:
> >
> > > Hello OFBiz community!
> > >
> > > I started to check the execution on how a find form works and saw that
> in
> > > a field
> > > there is the lookup tag and has a target:
> > >
> > >  > > required-field="true"> > target-form-name="LookupPartyName"/>
> > >
> > > When I check this field in web browser with inspect element there are
> so
> > > many attributes like:
> > > name="partyId"
> > > size="25"
> > > id="0_lookupId_NewSalesInvoice_partyIdTo"
> > > data-lookup-ajax-enabled="true"
> > > data-lookup-presentation="layer"
> > > data-lookup-request-url="LookupPartyName"
> > > data-lookup-form-name="NewSalesInvoice"
> > > data-lookup-optional-target=""
> > > data-lookup-width="640"
> > > data-lookup-height="500"
> > > data-lookup-position="topleft"
> > > data-lookup-modal="true"
> > > data-lookup-show-description="true"
> > > data-lookup-default-minlength="2"
> > > data-lookup-default-delay="300"
> > > data-lookup-args=""
> > > autocomplete="off"
> > > data-lookup-ajax= url="NewSalesInvoice_partyIdTo,
> > >
> >
> https://localhost:8443/ar/control/LookupPartyName;jsessionid=188FCECFADC720E660C03A5D3462E5F5.jvm1,ajaxLookup=YsearchValueFieldName=partyId
> > "
> > >
> > >
> > > My question is does lookup target adds these attributes automatically?
> > and
> > > if so how the process of the ajax call is being made, like where is the
> > > jquery function that is calling this url, if you could help me
> explaining
> > > this process it would mean so much to me.
> > >
> > > Thank you so much for your time,
> > > Best regards,
> > > Daors
> > >
> >
>


Re: Call another component's request-map

2020-10-27 Thread Daors Islami
Hello Aditya, thank you for your response

Where exactly I need to put this piece of code because right now I need a
button to include into my screen and for the button to show up, I have to
add the link tag like this:



Sorry maybe I didn't get quite right your answer, can you guide me with
this.

Thanks a lot!
Daors



On Tue, Oct 27, 2020 at 10:34 AM Aditya Sharma 
wrote:

> Hi Daors,
>
> You can use the controlPath attribute in ofbizUrl macro like this:
>
> <@ofbizUrl
>
> controlPath="/partymgr/control">viewprofile?partyId=${invoice.invoiceRolePartyId}
>
> HTH
>
> Thanks and Regards,
> Aditya Sharma
>
> On Tue, Oct 27, 2020 at 2:48 PM Daors  wrote:
>
> > Hello good people of OFBiz hope you're all doing good I just wanted to
> > know if there is possible to call another components request map from
> > another component f.e I'm in Account - AR and want to add a button to
> > create a new customer there so to redirect me to the create customer
> screen.
> >
> > Is there a way to do that in the link tag like:
> > 
> >
> > I tried this but it gives me this error:
> > org.apache.ofbiz.webapp.control.RequestHandlerException: Unknown request
> > [NewCustomer]; this request does not exist or cannot be called directly.
> >
> > I know that with FTL I can just add a anchor tag and add at the href the
> > url to go there but at this case I don't need FTL.
> >
> > Is there a solution for this or do I have to rewrite the request-map for
> > creating a new customer to the component that I'm currently working.
> >
> > Thanks a lot for your time,
> > Best Regards,
> > Daors
> >
>


Re: Removing the sub-menu Main and rearranging the menu bars at the top

2020-10-08 Thread Daors Islami
Good morning Deepak Dixit

I just tried it and it works perfectly! thank you very much, again thanks a
lot for your time.

Best regards,
Daors

On Thu, Oct 8, 2020 at 08:32 Deepak Dixit  wrote:

> Have you tried the position attribute webapp tag?
> Please set the position="1" for your weball definition.
>
> eg.
>
> 
> title="Order"
>
> *position="1"*
>
> description="OrderComponentDescription"
>
> server="default-server"
>
> location="webapp/ordermgr"
>
> base-permission="OFBTOOLS,ORDERMGR"
>
> mount-point="/ordermgr"/>
>
> In the above example Order will be listed on the first menu.
>
> HTH
>
> Kind Regards,
> Deepak Dixit
> DIRECTOR OF PRODUCT ENGINEERING
> mobile: +91 9826754548
> email: deepak.di...@hotwax.co
> *www.hotwax.co <http://www.hotwax.co/>*
>
>
> On Wed, Oct 7, 2020 at 6:37 PM Daors Islami  wrote:
>
> > Hello guys! thank you so much for the first reply it really helped me a
> > lot,
> >
> > If I could ask you one more thing it would really mean a lot for me and
> > hopefully I won't waste you too much time.
> >
> > My problem is that I created a plugin and want to show it as the first
> > Menu at the Menu Bar at the top
> > I saw that at the backend in Java the webappinfo is sorted by the webapp
> > title with a TreeMap is there a way that I can put it the first item even
> > if it starts for example with "SalesTest"
> >
> > I researched and one way of achieving it was by going to each
> > ofbiz-component.xml and add  app-bar-display='false' so in this way the
> > plugins won't appear at the top menu but I feel like it's not efficient
> > going to each components file and adding this,
> > is there any other way.
> >
> > Thank you so much for your time,
> > Best regards,
> > Daors
> >
>


Removing the sub-menu Main and rearranging the menu bars at the top

2020-10-07 Thread Daors Islami
Hello guys! thank you so much for the first reply it really helped me a lot,

If I could ask you one more thing it would really mean a lot for me and
hopefully I won't waste you too much time.

My problem is that I created a plugin and want to show it as the first Menu
at the Menu Bar at the top
I saw that at the backend in Java the webappinfo is sorted by the webapp
title with a TreeMap is there a way that I can put it the first item even
if it starts for example with "SalesTest"

I researched and one way of achieving it was by going to each
ofbiz-component.xml and add  app-bar-display='false' so in this way the
plugins won't appear at the top menu but I feel like it's not efficient
going to each components file and adding this,
is there any other way.

Thank you so much for your time,
Best regards,
Daors


Re: How to not load dummy demo data in PostgreSQL

2020-10-07 Thread Daors Islami
Hi Jacques thank you so much for the reply it really helped me a lot,

If I could ask you one more thing it would really mean a lot for me and
hopefully I won't waste you too much time.

My problem is that I created a plugin and want to show it as the first Menu
at the Menu Bar at the top
I saw that at the backend in Java the webappinfo is sorted by the webapp
title with a TreeMap is there a way that I can put it the first item even
if it starts for example with "SalesTest"
I researched and one way of achieving it was by going to each
ofbiz-component.xml and add  app-bar-display='false' so in this way the
plugins won't  won't appear at the top menu but I feel like it's not
efficient going to each components file and adding this,
is there any other way.

Thank you so much for your time,
Best regards,
Daors



On Thu, Oct 1, 2020 at 12:46 PM Jacques Le Roux <
jacques.le.r...@les7arts.com> wrote:

> Hi Daors,
>
> You should better refer to
> https://cwiki.apache.org/confluence/display/OFBIZ/How+to+Install+OFBiz+without+the+Demo+Data
>
> And even better to
> https://ci.apache.org/projects/ofbiz/site/trunk/readme/html5/README.html#data-loading-tasks
>
> You can also read the README.adoc file in the main dir of your OFBiz
> instance
>
> Jacques
>
> Le 01/10/2020 à 10:38, Daors Islami a écrit :
> > Hello OfBiz Community, I just wanted to ask directly without losing
> anyone time,  I have connected OfBiz with PostgreSQL and I just want to
> load only the essential data to be able to use the app (f.e the user
> account for logging in) not the demo data!
> >
> > I have read:
> >
> >
> https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-InitialDataLoading
> >
> >
> > And there it says that I should use the command:
> > gradlew “ofbiz –load-data readers=seed,seed-initial”
> >
> >
> > I tried it and it didn’t work for me, maybe I misunderstood it.
> >
> > Is there a gradle command to remove the dummy data from the tables or
> how is it possible to achieve this, I only want to be able to go into the
> app and add data myself not to load dummy data. I’m new to OfBiz and
> learning it daily.
> >
> > Thank you for your time,
> > Best regards,
> > Daors.
>
>


How to not load dummy demo data in PostgreSQL

2020-10-01 Thread Daors Islami
Hello OfBiz Community, I just wanted to ask directly without losing anyone 
time,  I have connected OfBiz with PostgreSQL and I just want to load only the 
essential data to be able to use the app (f.e the user account for logging in) 
not the demo data!

I have read:

https://cwiki.apache.org/confluence/display/OFBIZ/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-InitialDataLoading


And there it says that I should use the command:
gradlew “ofbiz –load-data readers=seed,seed-initial”


I tried it and it didn’t work for me, maybe I misunderstood it.

Is there a gradle command to remove the dummy data from the tables or how is it 
possible to achieve this, I only want to be able to go into the app and add 
data myself not to load dummy data. I’m new to OfBiz and learning it daily.

Thank you for your time,
Best regards,
Daors.