You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fesod.apache.org by "bengbengbalabalabeng (via GitHub)" <gi...@apache.org> on 2025/12/27 04:32:24 UTC

[I] [Website] Incorrect Code Example in Documentation Website (Hyperlink & Formula Usage) [fesod]

bengbengbalabalabeng opened a new issue, #759:
URL: https://github.com/apache/fesod/issues/759

   The documentation contains inaccurate code examples regarding the usage of WriteCellData. Specifically, the current examples for setting hyperlinks and formulas do not align with the actual API, which may lead to implementation failures for users.
   
   ### 1. `WriteCellData` does not have a `hyperlink()` method
   
   <img width="845" height="265" alt="Image" src="https://github.com/user-attachments/assets/9f2efac7-0180-43ec-a79b-6d6a29cddcad" />
   
   URL: [Fesod Write Extra Hyperlinks - Code Example](https://fesod.apache.org/docs/sheet/write/extra#hyperlinks)
   
   **Correct Usage:**
   
   ```java
   WriteCellData<String> cellData = new WriteCellData<>("点击访问");
   HyperlinkData hyperlinkData = new HyperlinkData();
   hyperlinkData.setAddress("https://example.com");
   hyperlinkData.setHyperlinkType(HyperlinkData.HyperlinkType.URL);
   cellData.setHyperlinkData(hyperlinkData);
   ```
   
   ### 2. `WriteCellData(String)` constructor treats input as plain text, not a formula
   
   <img width="790" height="258" alt="Image" src="https://github.com/user-attachments/assets/7a418bb6-bee8-4ea8-a943-af52fefc52d2" />
   
   URL: [Fesod Write Extra Formulas - Code Example](https://fesod.apache.org/docs/sheet/write/extra#formulas)
   
   **Correct Usage:**
   
   ```java
   WriteCellData<String> cellData = new WriteCellData<>();
   FormulaData formulaData = new FormulaData();
   formulaData.setFormulaValue("SUM(A1:A10)");
   // Or
   // formulaData.setFormulaValue("=SUM(A1:A10)");
   cellData.setFormulaData(formulaData);
   ```
   
   ### Are you willing to submit a PR?
   
   - [x] I'm willing to submit a PR!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


Re: [I] [Website] Incorrect Code Example in Documentation Website (Hyperlink & Formula Usage) [fesod]

Posted by "delei (via GitHub)" <gi...@apache.org>.
delei closed issue #759: [Website] Incorrect Code Example in Documentation Website (Hyperlink & Formula Usage)
URL: https://github.com/apache/fesod/issues/759


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


Re: [I] [Website] Incorrect Code Example in Documentation Website (Hyperlink & Formula Usage) [fesod]

Posted by "bengbengbalabalabeng (via GitHub)" <gi...@apache.org>.
bengbengbalabalabeng commented on issue #759:
URL: https://github.com/apache/fesod/issues/759#issuecomment-3694580593

   > Hi, I’d like to work on this issue. I will verify the incorrect code example on the documentation website and submit a fix PR. Please let me know if that’s okay.
   
   Thank you! I’ve already submitted a similar PR (#766). If you're interested, feel free to review it together with the community members. 😊


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org


Re: [I] [Website] Incorrect Code Example in Documentation Website (Hyperlink & Formula Usage) [fesod]

Posted by "allanehareddy (via GitHub)" <gi...@apache.org>.
allanehareddy commented on issue #759:
URL: https://github.com/apache/fesod/issues/759#issuecomment-3694539440

   Hi, I’d like to work on this issue.
   I will verify the incorrect code example on the documentation website and submit a fix PR.
   Please let me know if that’s okay.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@fesod.apache.org
For additional commands, e-mail: commits-help@fesod.apache.org