Custom casting example #252
-
Hi there, First I'd like to send my best regards to contributors of this project. Best Regards |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
Hi @mrgpd-pfevre , Thank you first off :) have you tried the steps of Custom Casting Implementation writen in README? |
Beta Was this translation helpful? Give feedback.
-
Yes I have read the doc but the chapter is a bit short, and I miss an example on how to determine on which cell the cast class will apply.
Pierre Fèvre
Directeur Technique
[logo]<https://www.mission-rgpd.com/>
[phone icon] +33 6 12 69 13 67
[mail icon] ***@***.******@***.***>
[website icon] www.mission-rgpd.com<https://mission-rgpd.com>
[linkedin icon] @missionrgpd<https://www.linkedin.com/company/missionrgpd/>
[banner]<https://www.mission-rgpd.com/demo-logiciel-rgpd/>
De : Hakan Özler ***@***.***>
Envoyé : jeudi 11 août 2022 11:26
À : ozlerhakan/poiji ***@***.***>
Cc : Pierre FEVRE ***@***.***>; Mention ***@***.***>
Objet : Re: [ozlerhakan/poiji] Custom casting example (Discussion #252)
Hi @mrgpd-pfevre<https://github.com/mrgpd-pfevre> ,
Thank you first off :) have you tried the steps of Custom Casting Implementation writen in README?
—
Reply to this email directly, view it on GitHub<#252 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZQVVM3KAHNLMRT7XVQ7AZTVYTBJ5ANCNFSM56HKSK3Q>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
|
Beta Was this translation helpful? Give feedback.
-
Ah well, let's step back first to see how we can use our own casting feature by looking at the current casting class over here https://github.com/ozlerhakan/poiji/blob/master/src/main/java/com/poiji/config/DefaultCasting.java#L237. As you can see there, we look at the data type of each field type (here https://github.com/ozlerhakan/poiji/blob/master/src/main/java/com/poiji/config/DefaultCasting.java#L250). What you can do is once you find that the field type is boolean, you can convert the value as:
an excel file like:
|
Beta Was this translation helpful? Give feedback.
-
hi @mrgpd-pfevre , could you please mark the discussion as answer? :) thanks! |
Beta Was this translation helpful? Give feedback.
hi @mrgpd-pfevre , could you please mark the discussion as answer? :) thanks!